Chinaunix's Archiver
论坛
›
Python
› Unicode字符串问题
潇洒子弦
发表于 2014-12-05 14:44
Unicode字符串问题
类型为<type 'str'>
值\u6b66\u6c49\u5e02
怎么将它转换成明文
银风冷月
发表于 2014-12-05 15:38
a = '\u6b66\u6c49\u5e02'
print a.decode('unicode_escape')
潇洒子弦
发表于 2014-12-05 17:13
回复 2# 银风冷月
多谢
页:
[1]
查看完整版本:
Unicode字符串问题