
Preferences -> Browse Packages -> SublimeREPL -> config -> python ->打开 Main.sublime-menu -> 找到

{"command": "repl_open",
"caption": "Python - RUN current file",
"id": "repl_python_run",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python", "-u", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},

修改其中的 "cmd" 项。

如果电脑中只有一个python版本

Preferences -> Browse Package -> SublimeREPL -> config -> python -> 打开Default.sublime-commands -> 找到
{
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
并复制到 Preferences -> Key Bindings 中sublime text3 python,并在代码中添加想要修改的快捷键sublime text3 python,如下:
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-126229-1.html
哈哈
如果台湾是独立的
联想不思进取