Python打印Unicode列表
发布于 2021-01-29 16:24:52
用下面的代码
lst = [u'\u5de5', u'\u5de5']
msg = repr(lst).decode('unicode-escape')
print msg
我有
[u'工', u'工']
如何删除开头,u
以便的内容msg
为:
['工', '工']
关注者
0
被浏览
150
1 个回答