摘要: shutil.rmtree(path) 报错:PermissionError: [WinError 5] 分析:对应的目录或文件被设置了只读属性 解决方案: def remove_readonly(func, path, _): # 错误回调函数,改变只读属性位,重新删除 "Clear the re 阅读全文
posted @ 2023-08-29 19:08 lovewaits 阅读(12) 评论(0) 推荐(0) 编辑