VSCode python配置
-
配置解释器
按 Ctrl+Shift+P 打开命令面板。
输入 Python: Select Interpreter 并回车。 -
参数调试
在launch.json中添加
{"version": "0.2.0","configurations": [{"name": "Python: Current File","type": "python","request": "launch","program": "${file}","console": "integratedTerminal","args": ["arg1", "arg2"]}]
}