立即学习:https://edu.csdn.net/course/play/26676/339580?utm_source=blogtoedu
1)普通方法:def method(self,x)
2)类方法:@classmethod
def method(cls,x)
3)静态方法:@staticmethod
def method()
立即学习:https://edu.csdn.net/course/play/26676/339580?utm_source=blogtoedu
1)普通方法:def method(self,x)
2)类方法:@classmethod
def method(cls,x)
3)静态方法:@staticmethod
def method()