本人遇到的BUG
如果运行完报错
usage: First.py [-h] [-o OUTPUT] [–width WIDTH] [–height HEIGHT] file First.py: error: the following arguments are required: file 用eclipse环境写一直出现如上错误。
那么你需要修改格式
具体如下
parser.add_argument('--file', default='test.jpg') # 输入文件
百度网盘
https://pan.baidu.com/s/1dWnAHF9CfQQBVAPcM7RHyw
提取码