Python命令行编程库——argparse

这篇文章是基本上是Python Doc[https://docs.python.org/2/howto/argparse.html#id1]的翻译与总结

添加参数

定位参数(position argument)

import argparse
parser = argparse ...
more ...