0

python判断文件是否存在

mamie created at6 years ago view count: 2444
report
回复
0
import os.path
os.path.exists(file_path)
6 years ago 回复
0

exists可以判断文件或者文件夹都存在

import os.path
os.path.exists(path)
6 years ago 回复