An exception has occurred, use %tb to see the full traceback.----parser.parse_args()报错

一、报错:

原因:

由于在jupyter notebook中,args不为空。

 二、问题解决

改成args = parser.parse_args(args=[])

猜你喜欢

转载自www.cnblogs.com/Lee-yl/p/11963454.html