zlib.error:解压缩数据时出错-3:标头检查错误

时间:2018-04-10 13:32:42

标签: python zlib

我试图解压缩这个base64,并且得到了这个异常代码错误了吗?

import zlib
import base64

b = "kxcp+3ky2c95u2rhHvGq6t12rh64MhjvC3tujkONnrQ4VIh2jr3FlLudiQJzeTLN"

print(zlib.decompress(base64.b64decode(b)))


Traceback (most recent call last):
  File "/home/lcardoso/Projetos/stalkers/busca_nfe_incompleta/teste.py", line 8, in <module>
    print(zlib.decompress(base64.b64decode(b)))
zlib.error: Error -3 while decompressing data: incorrect header check

0 个答案:

没有答案