看python tutorial:
Derived classes may override methods of their base classes. Because methodshave no special privileges when calling other methods of the same object, amethod of a base class that calls another method defined in the same base classmay end up calling a method of a derived class that overrides it. (For C++programmers: all methods in Python are effectively virtual
.)
这一段,我想起了两件事:
1.王伦拒绝林冲入伙 --> 同类型不引入,万一都相当老大怎么办,只能留一个。
2.强龙不压地头蛇 --> 本地人张三就是比国际范儿张三受用,在当地吃得开,这和地方保护主义如出一辙;
原文: