json 中文显示乱码

方法一

print res_content.decode(‘raw_unicode_escape’)

 

方法二

print json.dumps(json.loads(result),ensure_ascii=False)



This entry was posted on 2019 年 01 月 11 日 and is filed under IT DOC. Written by: . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.