python定時刪除指定路徑下目錄及文件

python中os.remove可遞歸刪除指定目錄和文件: import os import time dirPath=r"D:\ftp" while True: for root, dirs, files in os.walk(dirPath, topdown=False): for name in files: os.remove(os.path
相關文章
相關標籤/搜索