Fix literal error in p07_calling_method_on_parent_class
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
>>>
|
||||
|
||||
为了弄清它的原理,我们需要花点时间解释下Python是如何实现继承的。
|
||||
对于你定义的每一个类而已,Python会计算出一个所谓的方法解析顺序(MRO)列表。
|
||||
对于你定义的每一个类,Python会计算出一个所谓的方法解析顺序(MRO)列表。
|
||||
这个MRO列表就是一个简单的所有基类的线性顺序表。例如:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user