Can 'argparse' consume a string instead of python script arguments?

后端 未结 0 1608
无人及你
无人及你 2020-12-17 17:58

I have a string and I need to extract the positional params and optional params from it.

"start command test --param_1 a --param_2 b"

Is there a way

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