赞
踩
vscode在运行程序时可以指定某一个文件运行时的命令参数,通过设置lanuch.json就可以进行设置,如下所示:
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python: argue-test.py", "type": "python", "args": [ "food", "--girlfriend", "jingjing", "--house", "12" ], "request": "launch", "program": "${file}", "console": "integratedTerminal", "justMyCode": true } ] }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。