方法一

# -*- coding: utf-8 -*-
s_list = ['你好', '中国']
print(str(s_list).decode('string_escape'))

 

方法二

安装 uniout package

终端输入:

sudo pip install uniout

运行python代码

# -*- coding: utf-8 -*-
import uniout
s_list = ['你好', '中国']
print(s_list)

 

相关文章:

  • 2021-06-09
  • 2021-05-01
  • 2021-06-23
  • 2021-06-26
  • 2021-06-04
  • 2021-11-05
  • 2021-12-02
猜你喜欢
  • 2021-07-06
  • 2021-08-12
  • 2022-02-10
  • 2021-04-15
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案