在Sublime Text3中執行含有input輸入的代碼時,沒辦法執行,如何解決?
解決方法如下:
1.首先在Sublime Text3中安裝:SublimeREPL 插件
安裝方法,按Ctrl+Shift+P, 輸入SublimeREPL 進行安裝即可
2. 安裝完成后,運行程序
依次點擊Tools—>SublimeREPL—>Python—Python -->RUN current file,打開一個名為“*REPL*[python]”的文件,它是可交互的,在里面輸入內容,回車即可。

設置運行快捷鍵:
依次點擊Preferences—>Key Buildings,輸入以下內容,然后保存,設置按鍵F5為運行程序快捷鍵
[
{ "keys": ["f5"], "caption": "SublimeREPL:Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
]


