如下腳本設置啟動參數,如題,在.vscode/launch.json文件中,紅色部分設置運行參數
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python: Current File (Integrated Terminal)", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal", "args": [ "--config", "configs/example.json" ] }, .....