TypeError: check() missing 1 required positional argument: ‘self’
TypeError:check()缺少1个必需的位置参数:“self”
出现原因:
1.没有实例化类直接引用
问题解决参考:https://stackoverflow.com/questions/54315359/typeerror-check-missing-1-required-positional-argument-self
2.在传参时候,参数多传或少传,self是默认不传参,但没有实例化直接调用容易出错
问题解决参考链接:https://blog.csdn.net/songlh1234/article/details/83587086
https://blog.csdn.net/CLHugh/article/details/75000104
TypeError: check() missing 1 required positional argument: 'self'
最新推荐文章于 2024-06-22 14:53:57 发布