#-*-coding:utf-8-*-
'''
Created on 2016年1月24日
@author: Zroad
'''
import zipfile
z = zipfile.ZipFile("E:\\eclipse-standard-kepler-SR2-win32.zip",'r')
for filename in z.namelist():
print "File", filename,type(filename)
bytes = z.read(filename)
print 'has', len(bytes), 'bytes'
从zip文件中读取数据
最新推荐文章于 2021-05-16 18:53:35 发布