python-递归删除文件夹
import osdef dele(path): if os.path.isdir(path): dirName = os.listdir(path) for file in dirName: dele(os.path.join(path, file)) os.rmdir(path) else: ...