13
Python中类方法的差异:绑定,未绑定和静态
以下类方法有什么区别? 是一个是静态的,另一个不是吗? class Test(object): def method_one(self): print "Called method_one" def method_two(): print "Called method_two" a_test = Test() a_test.method_one() a_test.method_two()
242
python