我从这样的网页上获取内容
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:无效的连续字节
如何将字节转换成字符串,谢谢
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐