gpt4 book ai didi

python - super (类型,obj): obj must be an instance or subtype of type

转载 作者:IT老高 更新时间:2023-10-28 20:23:43 32 4
gpt4 key购买 nike

为什么会出现以下错误,如何解决?

TypeError: super(type, obj): obj must be an instance or subtype of type

最佳答案

发生此错误的另一种方式是在 Jupiter 笔记本中使用类重新加载模块时。

简单的解决方法是重启内核。

http://thomas-cokelaer.info/blog/2011/09/382/

查看@Mike W 的answer了解更多详情。

关于python - super (类型,obj): obj must be an instance or subtype of type,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43751455/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com