摘要:
1 #!/bin/env python 2 #-*- coding:utf-8 -*- 3 import zipfile,os 4 import platform,sys,os 5 from zipfile import * 6 import zipfile 7 systty = platform.system() 8 system1 = 'windows' 9 system2... 阅读全文
摘要:
1 #打包成zip文件 2 import zipfile 3 f = zipfile.ZipFile('archive.zip','w',zipfile.ZIP_DEFLATED) 4 f.write('file_to_add.py') 5 f.close() 6 7 #从zip文件解包 8 import zipfile 9 zfile = zipfile.ZipFile(... 阅读全文