python - Python 用法参数语法的含义(例如:用法 example.py [-h] --example {example~~})
问题描述
您好我想知道 [],{},-,- 的意思
例如,当我执行python程序时,程序会打印“Usage : example.py [-h] example --example {example}
在那, [ ], { }, -, -- 是什么意思?
解决方案
推荐阅读
- date - 在 Chart.js 中设置 xAxes 标签以格式化 YYYY-MM-DD HH:mm:ss
- python - 在 Python 中使用 Fernet 的快速实现
- java - 使用 Spring Boot 和 Eureka Server 时如何修复错误 java.net.UnknownHostException?
- javascript - 如何声明“承诺”构造函数?
- python - 如何将 13 位 unix 纪元时间格式转换为日期时间?
- authentication - 在 Tomcat 中使用基于表单的身份验证的 Ember Web 应用程序
- laravel - 如何使用 Chart.js 在 Laravel 中传递数据
- html - 使用 BeautifulSoup 从网页下载损益表并转换为 Pandas 数据框?
- excel - 如何输入数组中行数的值?
- apache - 在 htaccess 中重写 url