Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Python-100-Days
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangkq
Python-100-Days
Commits
aca4779f
Commit
aca4779f
authored
May 17, 2019
by
zhaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正定义类示例代码
parent
43c147da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
.DS_Store
.DS_Store
+0
-0
面向对象编程基础.md
Day01-15/Day08/面向对象编程基础.md
+1
-1
No files found.
.DS_Store
0 → 100644
View file @
aca4779f
File added
Day01-15/Day08/面向对象编程基础.md
View file @
aca4779f
...
@@ -44,7 +44,7 @@ class Student(object):
...
@@ -44,7 +44,7 @@ class Student(object):
if self.age < 18:
if self.age < 18:
print('%s只能观看《熊出没》.' % self.name)
print('%s只能观看《熊出没》.' % self.name)
else:
else:
print('%s正在观看岛国爱情动作片.' % self.name
print('%s正在观看岛国爱情动作片.' % self.name
)
```
```
> **说明**:写在类中的函数,我们通常称之为(对象的)方法,这些方法就是对象可以接收的消息。
> **说明**:写在类中的函数,我们通常称之为(对象的)方法,这些方法就是对象可以接收的消息。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment