To start import the needed module
>>> import zipfile
Then get your file handle
>>> file = zipfile.ZipFile("d:/luna/me.zip", "r")
>>> for name in file.namelist():
print name
If you want more informations, please do like this one
>>> for info in infolist():
print info.filename, info.date_time, info.file_size
No comments:
Post a Comment