摘要: import shutil # 复制文件 shutil.copy(src, dst, *, follow_symlinks=True) # 将以 src 为根起点的整个目录树拷贝到名为 dst 的目录并返回目标目录。 shutil.copytree(src, dst, symlinks=False, 阅读全文
posted @ 2020-07-30 17:39 呓语i 阅读(137) 评论(0) 推荐(0) 编辑
摘要: import zipfile # 打开一个 ZIP 文件,file 为一个指向文件的路径(字符串) class zipfile.ZipFile(file, mode='r', compression=ZIP_STORED, allowZip64=True, compresslevel=None, * 阅读全文
posted @ 2020-07-30 17:37 呓语i 阅读(334) 评论(0) 推荐(0) 编辑