摘要: from:http://hi.baidu.com/rails7/item/9afc0b30fd1544c02e8ec299关于Python的super用法研究一、问题的发现与提出在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__(se 阅读全文
posted @ 2013-06-08 20:39 youJumpILook 阅读(461) 评论(0) 推荐(0) 编辑