How to read/process command line arguments?

后端 未结 17 2053
离开以前
离开以前 2020-11-21 05:14

I am originally a C programmer. I have seen numerous tricks and \"hacks\" to read many different arguments.

What are some of the ways Python programmers can do this

17条回答
  •  南方客
    南方客 (楼主)
    2020-11-21 05:35

    As you can see optparse "The optparse module is deprecated with and will not be developed further; development will continue with the argparse module."

提交回复
热议问题