📜  文件存在 python 代码示例

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

代码示例6
import os
file_exists = os.path.exists("example.txt") # Returns boolean representing whether or not the file exists