Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
92d74c94
authored
Jul 23, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e7db028b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
diy2.py
diy2.py
View file @
92d74c94
...
@@ -4,7 +4,11 @@ class Hero:
...
@@ -4,7 +4,11 @@ class Hero:
self
.
hp
=
hp
self
.
hp
=
hp
self
.
attack
=
attack
self
.
attack
=
attack
self
.
height
=
height
self
.
height
=
height
yase
=
Hero
(
"亚瑟"
,
9999
,
9999
,
1980
)
yase
=
Hero
(
"亚瑟"
,
1
,
300
,
1980
)
nuoyi
=
Hero
(
"诺依"
,
1
40
,
140
,
12
)
nuoyi
=
Hero
(
"诺依"
,
1
,
140
,
12
)
print
(
"诺以的身高是"
,
nuoyi
.
height
,
"毫米"
)
print
(
"诺以的身高是"
,
nuoyi
.
height
,
"毫米"
)
def
upgrade
()
yase
.
attack
=
yase
.
attack
+
20
yase
.
hp
=
yase
.
hp
+
1
#所有身高以毫米做单位
#所有身高以毫米做单位
\ No newline at end of file
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