I want to zip each file within a directory and keep its name, and give it compression using java, python or bash

前端 未结 0 1415
死守一世寂寞
死守一世寂寞 2021-02-10 23:26

What I have so far in python is:

from zipfile_infolist import print_info
import zipfile

print \'creating archive\'
zf = zipfile.ZipFile(\'zipfile_write.zip\', mo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题