我试图做this Gooey GUI tutorial:,但我确实无法通过他解析参数的第一段代码。我试过Spyder和Jupyter,在这个街区被困了一个小时:from argparse import ArgumentParser
parser = ArgumentParser(description='Create Quarterly Marketing Report')
parser.add_argument('data_directory',
action='store',
help="Source directory that contains Excel files")
parser.add_argument('output_directory',
action='store',
help="Output directory to save summary report")
parser.add_argument('cust_file',
action='store',
help='Customer Account Status File')
parser.add_argument('-d', help='Start date to include')
args = parser.parse_args()
我的错误:
^{pr2}$
完全回溯:-------------------------------------------------------------------------