python @staticmethod和@classmethod的做用与区别

参考:http://blog.csdn.net/handsomekang/article/details/9615239python 通常来讲,要使用某个类的方法,须要先实例化一个对象再调用方法。ide 如咱们定义了一个 函数 class A (): 编码   def __init__(): spa print "A" .net def show():orm print "test"对象   A
相关文章
相关标签/搜索