1、处理方法
text = u'\xe9\x95\xbf\xe5\x9f\x8e' text = text.encode('unicode-escape').decode('string_escape') print(text.decode('utf8'))
参考链接:
标签:中文,string,python,text,decode,unicode,escape From: https://www.cnblogs.com/fireblackman/p/17579203.html
1、处理方法
text = u'\xe9\x95\xbf\xe5\x9f\x8e' text = text.encode('unicode-escape').decode('string_escape') print(text.decode('utf8'))
参考链接:
标签:中文,string,python,text,decode,unicode,escape From: https://www.cnblogs.com/fireblackman/p/17579203.html