这里需要使用shutil.rmtree的onerror这个参数,这里需要实现文件权限修改的回调函数,通过onerror带入。 修改后代码如下: def clear_folder(path): """ ...
確定! 回上一頁