python之Python判断文件是否存在

导入包
import os

使用方法判断是否存在文件

os.path.exists('xxx/xxx/filename') # True/False

猜你喜欢

转载自blog.csdn.net/qq_42794826/article/details/108891184
今日推荐