class A: @staticmethod def m(): print "A"class B(A): @staticmethod def m(): print "B"a = A()a.m() # Ab = B()b.m() # B
No comments:
Post a Comment