最近在自学python,练习网上教程代码的时候遇到:
EOFError: EOF when reading a line
发现原因是sublime的console不支持输入,安装SublimeREPL即可解决.
但是每次都要点开tools-sublimeREPL有点麻烦,设置快捷键方式如下:
Preferences->Key Bindings - User
[
{"keys":["ctrl+r"] ,
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
]
快捷键可以自定义,根据个人喜欢即可.