大神求助 python解析json文件出错
url = r'http://pic.sogou.com/pics?query=%B7%E7%BE%B0%CD%BC&mode=1&dm=3&leftp=44230501&cwidth=&cheight=&start=0&reqType=ajax&reqFrom=result'
html = urllib.request.urlopen(url)
response = html.read()
hjson = json.loads(response)
print(hjson["query"])
报错:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 100: invalid start byte