当前位置:主页 > 软件编程 > Python代码 >
时间:2021-09-11 08:09:46 | 栏目:Python代码 | 点击:次
问题:
将u'\u810f\u4e71'转换为'\u810f\u4e71'
方法:
s_unicode = u'\u810f\u4e71' s_str = s_unicode.encode('unicode-escape').decode('string_escape')