python中有三种方法,实例方法、静态方法(staticmethod) 和 类方法(classmethod)
class A():
method = 'class'
#实例方法
def normethod(self):
print('I am the normal method')
#静态方法
@staticmethod
def stamethod():
print ('I am the static method')
#类方法
@classmethod
def clsmethod(cls):
print (f'I am the {cls.method} method')