zipfile - Work with ZIP archives ZipFile.namelist() Return a list of archive members by name. 返回压缩成员名称列表 with ZipFile('spam.zip', 'r') as myzip: for f in myzip.namelist(): print(f) ZipFile.getinfo(name) Return a ZipInfo object with information about
13.5. zipfile — Work with ZIP archives Source code: Lib/zipfile.py The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will