出于某种原因,Python的zipfile
库无法提取this password-protected zipfile archive中的文件。以下是我使用的代码:
import zipfile
zip_filename = 'extract_public_2018_20201006094007483_71129_20201001-20201006Texas.zip'
zipfile_password = b'&CkN52mKji3R8^4aI#7Z'
with zipfile.ZipFile(zip_filename) as myzip:
myzip.extractall(pwd=zipfile_password)
这是我得到的错误:NotImplementedError: That compression method is not supported
我更深入地挖掘了一下,发现这个档案中的文件的压缩方法是99。在哪里可以找到这种压缩方法的真正含义?这是否意味着我不能用Python的zipfile
库解压这个文件
谢谢你
PS:我正在使用Python 3.8
PKWare's appnote说99是:
我猜没有图书馆能帮上忙。您可能无法使用7z或PKZIP
相关问题 更多 >
编程相关推荐