我使用以下代码在ST3中构建了一个python3系统。
{ "shell_cmd": "python3 -u \"$file\"", "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "env": {"PYTHONIOENCODING": "utf-8"}, "variants": [ { "name": "Syntax Check", "shell_cmd": "python3 -m py_compile \"${file}\"", }, "name": "Run in cmd", "shell_cmd": "start cmd /c \"python3 ${file} & pause\"", } ] }
但是当我选择" Build with"并运行"在cmd"中运行,发生错误:
我可以知道如何修改构建系统,以便我可以在终端中运行py文件吗?