求助一下各位,请问这个吗,命令怎么操作,为啥会出现这个问题呢 | python | python 技术论坛-380玩彩网官网入口

讨论数量: 2
jason990420

it already told you that

the following arguments are required: -c/--config

d:\>type test.py
import argparse
parser = argparse.argumentparser(description='train config file')
parser.add_argument('-c', '--config', help='path to config file', required=true)
arg = parser.parse_args()
config_path = arg.config
print(f"path is {config_path}")
d:\>python test.py
usage: test.py [-h] -c config
test.py: error: the following arguments are required: -c/--config
d:\>python test.py -c c:\windows
path is c:\windows
d:\>python test.py --config c:\windows
path is c:\windows
2个月前

求助一下各位大神,写好的python程序,怎么应用到公众号,意思就是如何在公众号使用写好的python程序,如何建立连接

2个月前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
网站地图