摘要: 来自http://www.cnblogs.com/lovemo1314/archive/2011/05/03/2035005.html一、问题的发现与提出 在Python类的方法(method)中,要调用父类的某个方法,在Python 2.2以前,通常的写法如代码段1:代码段1:class A:def __init__(self):print "enter A"print "leave A"class B(A):def __init__(self):print "enter B"A.__init__(self)print " 阅读全文
posted @ 2012-09-12 11:39 sanshugong22 阅读(193) 评论(0) 推荐(0)