gzip(小心网页压缩格式)

网页的压缩格式

import gzip

print(response)

html = gzip.decompress(response)

html = html.decode('gbk')

你可能感兴趣的:(gzip(小心网页压缩格式))