可能重复:
在python中转换字符串,如\\ uXXXX
嗨,假设我有字符串
test
'\\u0259'
Run Code Online (Sandbox Code Playgroud)
注意转义反斜杠.
如何将其转换为相应的unicode字符串?
ken*_*ytm 31
>>> print 'test \\u0259'.decode('unicode-escape')
test ?
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16850 次 |
最近记录: |