安裝sublimeREPL即可解決問題
1、調用ctrl+shift+p,輸入:sublimerepl選擇並安裝;
2、選擇好我們要執行的py文件
3、選擇Tools -> SublimeREPL -> Python -> RUN current file,可支持輸入數據
4、創建F7快捷鍵方法:
perferences -- key bindings user 中粘貼如下代碼
[ {"keys":["f7"], "caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" }} ]