StackOverflow 文档 Python Language 教程 解压缩文件 使用 Python ZipFile.extractall() 解压缩 ZIP 文件 使用 Python ZipFile.extractall() 解压缩 ZIP 文件 Created: November-22, 2018 file_unzip = 'filename.zip' unzip = zipfile.ZipFile(file_unzip, 'r') unzip.extractall() unzip.close() 使用 Python TarFile.extractall() 解压缩 tarball解压缩文件