在Sublime Text中新建Python編譯系統(tǒng)
在新建編譯系統(tǒng)中輸入
{
"cmd": ["py","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}
并保存為 *.sublime-build 文件。
其中紅色字體py是Python3命令行的命令,Python2中的命令為python。

浙公網(wǎng)安備 33010602011771號(hào)