菜单-》运行-》添加配置
{
"version": "0.2.0",
"configurations": [
{
"name": "运行程序",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/main.py", // 指定要运行的脚本路径
"console": "integratedTerminal" // 选择在集成终端中运行
}
]
}
菜单-》运行-》添加配置
{
"version": "0.2.0",
"configurations": [
{
"name": "运行程序",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/main.py", // 指定要运行的脚本路径
"console": "integratedTerminal" // 选择在集成终端中运行
}
]
}