首页 > 解决方案 > Python 用法参数语法的含义(例如:用法 example.py [-h] --example {example~~})

问题描述

您好我想知道 [],{},-,- 的意思

例如,当我执行python程序时,程序会打印“Usage : example.py [-h] example --example {example}

在那, [ ], { }, -, -- 是什么意思?

标签: python

解决方案


推荐阅读