摘要:
from:http://blog.163.com/yang_jianli/blog/static/161990006201122411586729/使用方法: Python代码 classA(object):deffoo(self,x):#类实例方法print"executingfoo(%s,%s)"%(self,x)@classmethoddefclass_foo(cls,x):#类方法print"executingclass_foo(%s,%s)"%(cls,x)@staticmethoddefstatic_foo(x):#静态方法print&quo 阅读全文