我需要的是:pro [-a xxx | [-b yyy -c zzz]]我試過了,但是沒有用。有人可以幫我嗎?group= parser.add_argument_group('Model 2')group_ex = group.add_mutually_exclusive_group()group_ex.add_argument("-a", type=str, action = "store", default = "", help="test")group_ex_2 = group_ex.add_argument_group("option 2")group_ex_2.add_argument("-b", type=str, action = "store", default = "", help="test")group_ex_2.add_argument("-c", type=str, action = "store", default = "", help="test")謝謝!
添加回答
舉報(bào)
0/150
提交
取消