Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从这样的网页中获取内容
url = 'http://s0.icaipiao123.com/api/v2/rank/landing?lottery_key=shuangseqiu' scode = requests.get(url).content print(scode.decode('utf8')) print(type(scode)) print(scode.decode())
错误是“utf-8”编解码器无法解码位置 5 中的字节 0xeb:无效的继续字节
如何将字节转换为字符串,谢谢