VScode&Python:如何在控制檯進行輸入,切換直譯器版本
阿新 • • 發佈:2019-01-08
VScode&Python:如何在控制檯進行輸入,切換直譯器版本
切換Python直譯器版本
在選單中找到設定頁面
file
preference
setting
搜尋python
"python.pythonPath": "python",
修改為
"python.pythonPath": "你需要的python直譯器的完整地址",
如(ubuntu下)
"python.pythonPath": "/usr/bin/python3",
如何進行輸入
使用預設的Debug console是無法進行輸入的,就像這樣,即使你輸入了,也沒有任何效果
這時候我們點選右上角的下三角,選擇 Integrated Terminal
External Terminal
,編譯後即可進行輸入