python unicode 转汉字

a = '\u64cd\u4f5c\u7cfb\u7edf'
print a.decode('unicode-escape').encode('utf-8')

output:操作系统

  

 

参考:https://www.zhihu.com/question/35584979

posted @ 2017-06-07 16:58  fogv  阅读(6076)  评论(1编辑  收藏  举报