Python version 2.7 does not support this syntax. super() should have argument...

Python version 2.7 does not support this syntax. super() should have arguments in Python 2,是因为书中示例是用python 3写的,因此super的接口2.7不支持,将super().init()变为 super(CNN, self).init(),问题就可以修复,供大家参考。

猜你喜欢

转载自blog.csdn.net/qq_42611683/article/details/103115615
今日推荐