'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte(爬虫问题)
问题背景(注:python3):
用urllib.request抓去网页提示:
print(reponse.read().decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
而requests就没有出现问题。
原因:hea...
原创
2019-02-19 16:39:12 ·
2075 阅读 ·
1 评论