|
原因是sublimetext不能从当前控制台获得输入,要重新打开
1.调用ctrl+shift+p,输入:sublimerepl 安装 即 Package Control: Install Package
2.使用插件,Tools->SublimeREPL->Python ->Python-RUN current file
3.每次都如2那样选择菜单运行麻烦,就绑定快捷键 Preferences->Key Buildings
user的配置文件内容如下
{ "keys": ["f5"], "caption": "SublimeREPL:Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
|
|