产生这样的报错'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte我代码:from urllib import requesturl = "http://odds.500.com/fenxi/yazhi-749525.shtml"headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"}req = request.Request(url)resp = request.urlopen(req)a = resp.read()print(a.decode('utf-8'))### 问题描述
添加回答
举报
0/150
提交
取消