访次: AmazingCounters.com 次
摘要: 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... 阅读全文
posted @ 2016-04-01 18:34 IT老登 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 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(... 阅读全文
posted @ 2016-04-01 12:33 IT老登 阅读(346) 评论(0) 推荐(0) 编辑
访次: AmazingCounters.com 次