当前位置:网站首页>__ init__ () missing 2 required positive arguments

__ init__ () missing 2 required positive arguments

2022-07-04 21:15:00 Fun of construction

This kind of error is in addition to the insufficient parameters given in the regular call , And maybe with super The sentence is about .
Inherit python Be careful when you class ,super init The parameter needs to be the parent class init Pass in the required parameters :

super(xxx,self).__init__( You must remember to pass the reference here )
原网站

版权声明
本文为[Fun of construction]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042008529291.html