python3在sublime text3中中文输出报错问题解决

tools => build system => new build system => 填入以下代码


{
"cmd": ["/usr/local/bin/python3","-u","$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf8"},
}

然后保存为 python3.sublime-build即可