1. 程式人生 > >sublime text3中無法執行python 中input()解決方法

sublime text3中無法執行python 中input()解決方法

方法參考自網路,此處只為記錄。

1、Ctrl + shift + P ,在彈出的輸入框中輸入install package control;

2、Ctrl + shift +p, 輸入/選擇 Package Control: Install Package,然後在新的輸入框中輸入SublimeREPL,回車

3、依次點選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"
                      } 
    },
]
4、配置完畢,需要執行有input()的程式時,按F5即可。