1、调用ctrl+shift+p,输入:sublimeREPL选择并安装,稍等一会;
2、然后tools--sublimeREPL--Python--Python RUN current file,运行当前文件,输入input()内容,按回车得到结果;
3.设置sublime的窗口显示为多层(方便调试,见下图):View --> Layout --> Columns:2
4.设置程序执行快捷键
操作步骤:Perferences --> Key bindings user,在弹出窗口中粘贴如下代码,这里定义“f5”为代码执行快捷键
[ {"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}}
]