【python】unicode转中文
1、处理方法
text = u'\xe9\x95\xbf\xe5\x9f\x8e' text = text.encode('unicode-escape').decode('string_escape') print(text.decode('utf8'))
参考链接:
(90条消息) python 中 unicode原样转成str, unicode-escape与string_escape_".encode(\"string_escape\")"_小橘子Pythoner的博客-CSDN博客