【问题标题】:main.py: error: the following arguments are required: -m/--modemain.py:错误:需要以下参数:-m/--mode
【发布时间】:2022-06-15 18:04:16
【问题描述】:

我正在尝试在 PyCharm 上运行此 model,但出现以下错误:

usage: main.py [-h] -m MODE
main.py: error: the following arguments are required: -m/--mode

谁能告诉我这个错误是关于什么的,我该如何解决它?

【问题讨论】:

  • 您在运行时是否提供了-m 参数?

标签: python argparse


猜你喜欢
  • 2021-01-12
  • 2021-12-18
  • 1970-01-01
  • 2019-03-10
  • 2019-05-26
  • 2018-12-12
  • 1970-01-01
  • 2023-02-09
  • 2021-07-12
相关资源
最近更新 更多