Traceback (most recent call last): File "/home/mmsys/pycharm-community-2022.1.3/plugins/python-ce/helpers/pydev/pydevd.py", line 1491, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/home/mmsys/pycharm-community-2022.1.3/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/media/mmsys/6f1091c9-4ed8-4a10-a03d-2acef144d2e1/SXY/LPDM-main/main.py", line 429, in <module> parser = Trainer.add_argparse_args(parser) AttributeError: type object 'Trainer' has no attribute 'add_argparse_args' python-BaseException
标签:,exec,python,py,execfile,line,pydev From: https://www.cnblogs.com/yyhappy/p/17281383.html