We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python 判断文件和文件夹是否存在
import os os.path.isfile('test.txt') #如果不存在就返回False os.path.exists(directory) #如果目录不存在就返回False
There was an error while loading. Please reload this page.
[[TOC]]