安裝SublimeREPL插件
第一步
快捷键:Ctrl+Shift+P,弹出输入框,输入Package,选择Package Control:Install Package。
第二步
等待弹出输入框,输入SublimeREPL,回车
第三步
安装完后,设置快捷键。在菜单栏点击Preferences->Key Bindings,输入以下内容:
[
{ "keys": ["f5"], "caption": "SublimeREPL:Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]
注意:运行的编译器是Python2.7,配置3.5请看附录