How to have one mandatory and two optional positional arguments?

前端 未结 0 1394
时光说笑
时光说笑 2021-01-23 08:08

I need to run a python file as follows

python runnning_program.py argument1 [argument2] [argument3]

def main(argument1,argument2 = default2, argument3 = de         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题