Python标准库os.path中的exists()方法用来判断文件是否存在
√
举一反三
内容
- 0
Python标准库os.path中用来判断指定路径是否为文件的方法是isfile()
- 1
Python标准库os.path中用来判断指定路径是否为文件夹的方法是____________。
- 2
Python标准库os.path中用来分割指定路径中的文件扩展名的方法是()。 A: splitext( ) B: exists( ) C: split( ) D: abspath( )
- 3
Python标准库os.path中用来分割指定路径中的文件扩展名的方法是( )。 A: isdir() B: splitext() C: exists() D: listdir()
- 4
os.path模块检查文件是否存在的函数是( )。 A: isfile(path) B: isdir(path) C: splitext(path) D: exists(path)