argparse
Argparse学习笔记
记一下一些常用的Argparse方法
1. 引入argparse
#test.py
import argparse#引入包
parser = argparse.ArgumentParser()#创建对象
parser.parse_args()#接收参数
python3 test.py --help
usage: test.py [-h]
optional arguments:
-h, --help show this help message and exit
2.加入




