python unicode编码转中文字符

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zfy1355/article/details/53406250
#只需要如下函数即可
s = '\u6253\u8d4f'
print s.decode('unicode_escape')

猜你喜欢

转载自blog.csdn.net/zfy1355/article/details/53406250