当前位置: 首页 > news >正文

社区网站 备案wordpress批量修改

社区网站 备案,wordpress批量修改,网站显示结算,良庆网站建设背景 在vscode 中 如果执行命令需要传递进来参数,那么直接通过命令行终端的方式不太方便。通过task 任务的方式来进行启动执行,降低反复输入参数等繁琐工作。 首先可以查看vscode 官方文档 task 启动 crtl shift p .vscode/task.json 示例 执行cp…

背景

  • 在vscode 中 如果执行命令需要传递进来参数,那么直接通过命令行终端的方式不太方便。
  • 通过task 任务的方式来进行启动执行,降低反复输入参数等繁琐工作。

首先可以查看vscode 官方文档

  • task 启动 crtl + shift + p

.vscode/task.json 示例

执行cpp 带参数二进制

{"version": "2.0.0","tasks": [{"label": "Run BIN","type": "shell",  // shell 类型的任务"command": "${command:cmake.launchTargetPath}", // CMake 生成的二进制文件路径"args": ["${workspaceFolder}/config.toml",  // 第一个参数"${workspaceFolder}/model.onnx"  // 第二个参数],"options": {"cwd": "${command:cmake.launchTargetDirectory}"},"group": {"kind": "build", // 此任务的组别"isDefault": true // 设为默认任务},"problemMatcher": [], // 没有特定的错误匹配器"presentation": {"echo": true, // 在输出面板中回显命令"reveal": "always", // 始终在面板中显示"focus": false, // 不聚焦到输出面板"panel": "new", // 在新面板中显示输出"close": false, // 任务完成后关闭输出面板"clear": false // 任务启动前清空输出面板}}]
}

在执行task时,手动输入传参

  • 硬编码方式虽然比较简单粗暴,但是,当使用git来管理的时候,会引入一些没有必要的改变,那么此时就需要将参数,不是使用硬编码,而是去通过启动任务时,动态加载进去。
  • 那就简单介绍几种输入方式
        {  // 简单理解就是输入文本框"type": "promptString","id": "outputPath","description": "Please input the output path:",},{ // 简单理解说就是选择框"type": "pickString","id": "quantize","description": "use quantize","options": [{"label": "True","value": "-q"},{"label": "False","value": ""}],"default": ""},
  • 详细示例如下
{"version": "2.0.0","inputs":[{"type": "promptString","id": "outputPath","description": "Please input the output path:",},{"type": "pickString","id": "quantize","description": "use quantize","options": [{"label": "True","value": "-q"},{"label": "False","value": ""}],"default": ""},{"type": "pickString","id": "task","description": "task type","options": ["weigh","arc"],"default": "arc"},{"type": "promptString","id": "config","description": "Please input using configs file",},{"type": "pickString","id": "test_data","description": "juse use test data","options": [{"label": "True","value": "-b"},{"label": "False","value": ""}],"default": ""},{"type": "pickString","id": "qat","description": "use keras quantization aware training","options": [{"label": "True","value": "--qat"},{"label": "False","value": ""}],"default": ""},],"tasks": [{"label": "torch_inf","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/inference_torch.py","-i","${workspaceFolder}/output/${input:task}/${input:outputPath}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []},{"label" : "train","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/test.py","-c","${workspaceFolder}/configs/${input:config}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []},{"label" : "exprot_tfl","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/export2.py","-i","${workspaceFolder}/output/${input:task}/${input:outputPath}","${input:quantize}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []}]
}
http://www.yayakq.cn/news/65771/

相关文章:

  • 黄石企业网站建设开发注册网站
  • 我英文网站建设网站建设 网页设计 的文章
  • 如何把动态图发网站做头像购物网站开发教程
  • 网站精神文件建设专栏wordpress关闭搜索
  • 成都百度竞价推广电商seo
  • 免备案网站建站广告素材网站哪个比较好
  • 商洛做网站的公司的网站设计案例
  • 做网站能用自己电脑吗网站开发招聘 领英
  • 中医医院网站建设需求做介绍自己的短视频网站
  • 做网站哪里的好西安官网seo分析
  • 外贸网站框架重庆网站关键字优化
  • 网站被抄袭舆情分析
  • 青海公司网站建设哪家快金融企业类网站模板免费下载
  • 音乐网站怎么做精准关键词2015网站建设源码
  • 怎么使用网站服务器怎么做网站受众分析
  • 网站怎么排名wordpress 手机版
  • 大连模板建站软件莱芜东风街吧百度贴吧
  • 头条号可以做网站链接吗网站权重怎么提升
  • 高平企业网站wordpress文章rss
  • 广安网站制作设计全网营销推广 好做吗
  • 淘宝做链接的网站apsx做的网站怎么发布
  • 永康市建设局网站为什么打不开wordpress 主题课堂
  • 怎么给甲方做网站备案wordpress英文变中文
  • 国外网站做淘宝客南昌做网站费用
  • 人力资源公司网站建设方案潍坊网站排名推广
  • 百度推广做的网站可以用吗网站站点管理在哪里
  • 建一个自己的网站需要多少钱php网站源码大全
  • 沪上名家装饰公司官网鄂州seo厂家
  • 上海网站建设哪家技术好wordpress 内容置顶
  • 百度不让访问危险网站怎么办wordpress生成16位名称