用 argparse 编写命令行工具

argparse 是 Python 的标准库,我们可以用它快速地编写一个命令行工具

官方文档open in new window参考二open in new window参考三open in new window