解决An exception has occurred, use %tb to see the full traceback. SystemExit: 2问题

将原代码 args = parser.parse_args()

改为:args = parser.parse_args(args=[])

你可能感兴趣的:(python)