With the following code
lst = [u'\u5de5', u'\u5de5']
msg = repr(lst).decode('unicode-escape')
print msg
I got
[u'工', u'工']
How can I remove the leading u
so that the content of msg
is:
['工', '工']
With the following code
lst = [u'\u5de5', u'\u5de5']
msg = repr(lst).decode('unicode-escape')
print msg
I got
[u'工', u'工']
How can I remove the leading u
so that the content of msg
is:
['工', '工']