Skip to content

Commit 27a26bf

Browse files
committed
modify typos
1 parent 51ee68a commit 27a26bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

209.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Python 3中也有异常:
166166

167167
##调用覆盖的方法
168168

169-
承接前面的问题和程序,可以对子类`Gril`做出这样的修改。
169+
承接前面的问题和程序,可以对子类`Girl`做出这样的修改。
170170

171171
class Girl(Person):
172172
def __init__(self, name):
@@ -207,7 +207,7 @@ Python 3中也有异常:
207207
def get_name(self):
208208
return self.name
209209

210-
仅仅修改一处,将`Person.__init__(self, name)`去掉,修改为`super(Girl, self).__init__(name)`实行程序后,显示的结果与以前一样。
210+
仅仅修改一处,将`Person.__init__(self, name)`修改为`super(Girl, self).__init__(name)`执行程序后,显示的结果与以前一样。
211211

212212
关于`super`,有人做了非常深入的研究,推荐读者阅读[《Python’s super() considered super! 》](https://rhettinger.wordpress.com/2011/05/26/super-considered-super/),文中已经探究了`super`的工作过程。读者如果要深入了解,可以阅读这篇文章。
213213

0 commit comments

Comments
 (0)