UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 350: illegal multibyte sequence
ret = requests.get(url) #print(ret.text) ret = ret.content.decode("gbk")
报错
UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 350: illegal multibyte sequence
解决:
ret = requests.get(url) #print(ret.text) ret = ret.content.decode()