<reponame>ch1huizong/learning
#!/usr/bin/env python
"""Print the table of contents of a ZIP archive
"""
#end_pymotw_header

import zipfile

with zipfile.ZipFile('example.zip', 'r') as zf:
    print zf.printdir()

#!/usr/bin/env python
"""Print the table of contents of a ZIP archive
"""
#end_pymotw_header

import zipfile

with zipfile.ZipFile('example.zip', 'r') as zf:
    print zf.printdir()
#!/usr/bin/env python Print the table of contents of a ZIP archive #end_pymotw_header