ITEEDU

staticmethod静态方法

注意与classmethod 区分。

>>> class Class1:
    @staticmethod
    def test():
        print "static method"
>>> Class1.test()
static method