Python 判断指定路径下文件是否存在

improt os

os.path.exists(file_name)

返回值为bool值

原文地址:https://www.cnblogs.com/loayi/p/6939626.html