工具 -> 编译系统 -> 新编译系统
{
"cmd": ["python","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936"
}
用上面的代码替换掉"shell_cmd": "make", 保存当前配置文件为: "python_支持中文.sublime-build", 然后在工具->编译系统->选择 "python_支持中文"
本文介绍如何在Sublime Text中配置Python编译系统,支持中文编码,通过修改编译配置文件,替换原有的shell命令,实现Python文件的正确编译。
1308

被折叠的 条评论
为什么被折叠?



