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(),问题就可以修复,供大家参考。
Python version 2.7 does not support this syntax. super() should have argument...
最新推荐文章于 2023-08-12 21:34:44 发布