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

improt os

os.path.exists(file_name)

返回值为bool值

posted @ 2017-06-04 09:56  银荡的那一夏  阅读(5091)  评论(0)    收藏  举报