在python中处理类似“\u3046”的编码

2024-09-28 18:46:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个类似'Earth\u3046\ntroffice' “Vi\u00e4ories”的字符串

如果我想在编码前后添加空格,变成 'Earth \u3046 \ntroffice' and 'Vi \u00e4 ories '


Tags: and字符串编码vi空格earthu00e4u00e4ories