自建的python运行环境如下:python3 

sublime text 3 python 控制台输出中文乱码解决方案

 

找到python3.sublime-build文件打开,在文件中加入"env": { "PYTHONIOENCODING": "utf8" }, 即可

sublime text 3 python 控制台输出中文乱码解决方案

文档包含:

{
"cmd": ["D:\\Software\\Python37\\python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": { "PYTHONIOENCODING": "utf8" },
}

 

相关文章:

  • 2021-05-13
  • 2022-02-19
  • 2021-12-01
  • 2021-08-24
  • 2021-09-26
  • 2021-03-27
  • 2021-08-31
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-03-31
  • 2021-08-25
  • 2021-07-05
  • 2021-11-28
  • 2022-01-08
  • 2021-09-13
相关资源
相似解决方案