如需删除文件,必须导入OS 模块,并运行其os.remove() 函数: ... import os if os.path.exists("demofile.txt"): os.remove("demofile.txt") else: print("The file ...
確定! 回上一頁