1.shutil模块 import shutil shutil.make_archive('shutil_archive_test', 'zip', 'D:\pyworkspace\.idea') make_archive函数第一项为压缩成的文件名,第二项为压缩格式,第三项为压缩的目录 shutil.copytree(src, dst, symlinks=False, ignore=None) 递归的去拷贝文件夹 shutil.copytree('folder1', 'folder2', ign…