Skip to content

Commit 9e36049

Browse files
authored
Merge pull request jackfrued#125 from amath0312/master
修正定义类示例代码
2 parents 43c147d + aca4779 commit 9e36049

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.DS_Store

8 KB
Binary file not shown.

Day01-15/Day08/面向对象编程基础.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Student(object):
4444
if self.age < 18:
4545
print('%s只能观看《熊出没》.' % self.name)
4646
else:
47-
print('%s正在观看岛国爱情动作片.' % self.name
47+
print('%s正在观看岛国爱情动作片.' % self.name)
4848
```
4949

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

0 commit comments

Comments
 (0)