【发布时间】:2020-05-17 20:24:54
【问题描述】:
optlist, args = getopt.getopt(sys.argv[1:], 'l:s:pd', ['load=', 'save=', 'print', 'delete'])
我传递了参数--load duplicates.json,我得到了这个异常。它出什么问题了?
raise GetoptError(_('option --%s not recognized') % opt, opt) getopt.GetoptError: option --save duplicates.json not recognized
我在窗户上以防万一。
【问题讨论】:
标签: python windows command-line arguments getopt