要在sublime3中设置新的build system,打开tools->build system->New System Build System
将其修改如下:
{
"shell_cmd": "python3 \"${file}\"",
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector":"source.py",
"working_dir": "${file_path}"
}
然后保存,将名字改为python3,sublime-build,保存,这时打开tools->build system则会看到多了一个python3的选项
本文介绍如何在Sublime Text 3中配置Python3的构建系统,包括设置shell命令、文件正则表达式、选择器及工作目录等关键步骤。
1万+

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



