下面由sublime教程欄目給大家介紹sublime text3中無法運(yùn)行python 中input()解決方法,希望對(duì)需要的朋友有所幫助!
方法參考自網(wǎng)絡(luò),此處只為記錄。
1、Ctrl + shift + P ,在彈出的輸入框中輸入install package control;
2、Ctrl + shift +p, 輸入/選擇 Package Control: Install Package,然后在新的輸入框中輸入SublimeREPL,回車
3、依次點(diǎn)擊Preferences—Key Buildings,輸入以下內(nèi)容,然后保存,設(shè)置按鍵F5(可以隨意修改)為運(yùn)行程序快捷鍵
[ { "keys": ["f5"], "caption": "SublimeREPL:Python", "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" } }, ]
4、配置完畢,需要運(yùn)行有input()的程序時(shí),按F5即可。