sublime 下面开发

sublime 下面开发 开发 ptyon 简单环境

1. 下载sublime 3
https://download.sublimetext.com/Sublime%20Text%20Build%203143%20x64.zip



但是,我遇到需要可交互输入时,程序无法完成,例如

raw_input("Enter your name: ")

发现输入后按回车没有用。。。


于是就装了sublimeREPL插件,其实ctrl+B应该可以,只是我的可能出了什么问题。



2. 安装 SublimeREPL
Ctrl+shift+p 键入 install packages
稍等片刻后 键入 SublimeREPL 安装即可
通过选项Tools->SublimeREPL->Python就可以看到效果了

3. 绑定f5
Preference->key Bindings->user中添加下面配置,

其中F5用来执行python文件,对应于Tools->SublimeREPL->python->Python RUN current file


[
{
"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]
原文地址:https://www.cnblogs.com/liango/p/7535719.html