标签:解压 extract filename amp pen nbsp pytho open pfile
压缩
import zipfile
zip=zipfile.open(‘‘,‘w‘)
zip.write(‘‘)
zip.close()
解压
import zipfile
zip=zipfile.open(‘‘,‘r‘)
zip.extractall(‘‘)
zip.extract(‘filename‘)
zip.close()
标签:解压 extract filename amp pen nbsp pytho open pfile
原文地址:http://www.cnblogs.com/ezway/p/6561269.html