1. 修改前

2. 直接使用decode("unicode_escape")方法,在运行过程中就会遇到报错:

3. 解决办法:unicode编码转为utf8编码格式的中文,再解码

4.参考文章
- https://www.cnblogs.com/573734817pc/p/10855147.html(这篇正解)
- https://www.cnblogs.com/WayneZeng/p/9290726.html(这篇文章感觉说的很有料,可惜目前自己看不大明白,收藏起来慢慢吸收)
本文标题:Python3 如何将unicode字符转成中文字符
本文链接:https://www.haomeiwen.com/subject/xpjsbctx.html
网友评论