import zipfilezz = zipfile.ZipFile('z.zip')zz.printdir()for name in zz.namelist(): print '%s: %r' % (name, zz.read(name))zz.close()