关于Subline text3的input问题

来源:互联网 发布:会计软件的合法性 编辑:程序博客网 时间:2024/05/01 22:30

使用input时,需要安装SublimeREPL插件才可以输入然后得到结果
关于如何安装SublimeREPL:
1.按ctrl+shift+p,输入install package,回车选择,然后搜索sublimerepl选择并安装
2.在要运行的文件上,选择Tools -> SublimeREPL -> Python -> RUN current file,这时候已经支持输入了数据了
3.由于每次运行程序都要执行:Tools -> SublimeREPL -> Python -> RUN current file 菜单有点麻烦,所以现在可以考虑给他创建个快捷键;
方法:perferences – key bindings user 中粘贴如下代码
[ {“keys”:[“F5”],
“caption”: “SublimeREPL: Python - RUN current file”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python_run”,
“file”: “config/Python/Main.sublime-menu”
}}
]
F5处可根据个人喜好替换,但不要与已有快捷键冲突