Does python have the static function member like C++

人言落日是天涯,望极天涯不见家 at
Wed Apr 11 05:08:23 CEST 2007

I define the class like this:
class AAA:
    counter = 0
    def __init__(self):
    def counter_increase():
        AAA.counter += 1
        print "couter now :", AAA.counter

But how could I call the function "counter_incrrease" ?

Thanks !

More information about the Python-list mailing list