1 前言
略
2 方案
修改Python3.sublime-build内容为
{
"cmd": ["C:/Users/Administrator/AppData/Local/Programs/Python/Python37/python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936"
}
说明:主要是添加"encoding":"cp936"就可以。
之前输出:
修改后输出:
3 参考
https://www.jianshu.com/p/a0c8e8f22467