VSCode python配置

  1. 配置解释器
    按 Ctrl+Shift+P 打开命令面板。
    输入 Python: Select Interpreter 并回车。

  2. 参数调试
    在launch.json中添加

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": ["arg1", "arg2"]
        }
    ]
}

你可能感兴趣的:(python)