def make_zip(fp_ls
, zip_path
):
"""将指定文件打包成zip文件"""
zipf
= zipfile
.ZipFile
(zip_path
, 'w')
for file_path
in fp_ls
:
file_name
= os
.path
.split
(file_path
)[-1]
zipf
.write
(file_path
, file_name
)
zipf
.close
()
转载请注明原文地址: https://lol.8miu.com/read-13838.html