📜  shutil.make_archive - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.786000             🧑  作者: Mango

代码示例1
dst = '/mnt/data' # where to save
src = '/home/abc' # directory to be zipped
path_to_archive = shutil.make_archive(dst,'zip',src)
# path_to_archive = '/mnt/data/abc.zip