python: 关于解决'\u'开头的字符串转中文的方法

# python3
string.encode('utf-8').decode('unicode_escape')

# python2
string.decode('unicode_escape')
posted @ 2021-12-24 16:29  二二二狗子  阅读(99)  评论(0)    收藏  举报