0xc9专题

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 167

在用urllib.request库的时候一部小心就会碰到 url = "http://money.163.com/special/pinglun/"data_byte = urllib.request.urlopen(url).read()data = data_byte.decode('UTF-8')print(data) 报错: UnicodeDecodeError: 'utf-