📜  python 目录包含文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:36.688000             🧑  作者: Mango

代码示例1
import os.path

if os.path.isfile('filename.txt'):
    print ("File exist")
else:
    print ("File not exist")