- 博客(1)
- 收藏
- 关注
原创 关于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"
2006-01-20 20:40:00
80898
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人