📜  vscode python 工作目录 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.925000             🧑  作者: Mango

代码示例1
{
    "version": "0.2.0",
    "configurations": [
    {
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "cwd": "${fileDirname}"
    }, 

    // my launch.json file was auto-generated by VS Code
    // in the directory of my current "Open Project". 
    // I just edited the file manually to add "cwd": "${fileDirname}"
}