2024-09-28 18:46:42 发布
网友
我有一个类似'Earth\u3046\ntroffice' “Vi\u00e4ories”的字符串
'Earth\u3046\ntroffice' “Vi\u00e4ories”
如果我想在编码前后添加空格,变成 'Earth \u3046 \ntroffice' and 'Vi \u00e4 ories '
'Earth \u3046 \ntroffice' and 'Vi \u00e4 ories '
试试这个:
" \u00e4 ".join("Vi\u00e4ories".split("\u00e4"))
返回(已解码字符):
'Vi ä ories'
试试这个:
返回(已解码字符):
相关问题 更多 >
编程相关推荐