import zipfile
file_name="a.txt"
f = zipfile.ZipFile('test.zip','w',zipfile.ZIP_STORED)
f.write(file_name)
f.close()

 

相关文章:

  • 2021-08-24
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-07-07
  • 2022-02-15
  • 2021-11-01
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案