相关疑难解决方法(0)

在python中转换字符串,如\\ uXXXX

我有一个像\ uXXXX(表示)的字符串,我需要将其转换为unicode.我从第三方服务收到它,因此python解释器不转换它,我需要在我的代码中进行转换.我怎么用Python做的?

>>> s
u'\\u0e4f\\u032f\\u0361\\u0e4f'
Run Code Online (Sandbox Code Playgroud)

python unicode

17
推荐指数
2
解决办法
6496
查看次数

标签 统计

python ×1

unicode ×1