单项选择题

要判断文件或文件夹是否存在,可使用的方法是( )。

A.os.mkdir( )
B.os.path.exists( )
C.os.isfile( )
D.os.path.isdir( )
微信扫码免费搜题