外部调用类方法总报错missing 1 required positional argument:'self'

原因:实例化这个类 实例化错了,少了括号()
解决:改成如下就可以了

参考学习:调用类方法时报错:missing 1 required positional argument: 'self' - hehehe_wy7 - 博客园 (cnblogs.com)
外部调用类方法总报错missing 1 required positional argument:'self'

原因:实例化这个类 实例化错了,少了括号()
解决:改成如下就可以了

参考学习:调用类方法时报错:missing 1 required positional argument: 'self' - hehehe_wy7 - 博客园 (cnblogs.com)