调用类方法时报错:missing 1 required positional argument: 'self'

调用类方法时报错:missing 1 required positional argument: 'self'

这种情况是因为在调用方法时,没有提前定义这个类的实例,导致无法返回。只要先定义一个实例就可以了

原文地址:https://www.cnblogs.com/hehehe-wy7/p/13347351.html