method
@staticmethod和@classmethod

Python其实有3个方法,即静态方法(staticmethod),类方法(classmethod)和实例方法,如下:deffoo(x):print"executingfoo(%s)"%(x)c...