请问python 爬取json文件时中文会有乱码,怎么解码?
收起
\x 什么的就是汉字啊,一般会自动转换吧。如果需要手动转换的话:
string = b'\xe8\xa7\xa3\xe7\xa0\x81' print(string.decode()) # Result: 解码
报告相同问题?