📜  python zip 解压目录 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:48.633000             🧑  作者: Mango

代码示例1
import zipfile

archive = zipfile.ZipFile('archive.zip')

for file in archive.namelist():
    if file.startswith('foo/'):
        archive.extract(file, 'destination_path')