GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Friday, February 25, 2011

Handling Zip File Using Python

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

Share/Bookmark

No comments:

Post a Comment