Skip to content

Commit

Permalink
Merge pull request jackfrued#125 from amath0312/master
Browse files Browse the repository at this point in the history
修正定义类示例代码
  • Loading branch information
jackfrued authored May 18, 2019
2 parents 43c147d + aca4779 commit 9e36049
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Day01-15/Day08/面向对象编程基础.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Student(object):
if self.age < 18:
print('%s只能观看《熊出没》.' % self.name)
else:
print('%s正在观看岛国爱情动作片.' % self.name
print('%s正在观看岛国爱情动作片.' % self.name)
```

> **说明**:写在类中的函数,我们通常称之为(对象的)方法,这些方法就是对象可以接收的消息。
Expand Down

0 comments on commit 9e36049

Please sign in to comment.