python(25):Unicode 转成中文

代码转换如下:

if __name__ == "__main__":
    data = "\u5c71\u5cb3\u548c\u4e00\u5207\u4e18\u9675\uff0c\u679c\u6811\u4e0e\u5404\u79cd\u67cf\u677e\u3002"
    print data.decode("unicode-escape")

 

 

posted on 2016-11-25 14:12  细雨微光  阅读(519)  评论(0)    收藏  举报