用Python如何一个文件是否存在?

import os.path
os.path.isfile(fname)

猜你喜欢

转载自blog.csdn.net/qq_15256443/article/details/81147930