Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_DIY1
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
9ed180df
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d8b2046b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
2.py
2.py
View file @
9ed180df
...
...
@@ -7,11 +7,12 @@ class Hero:
yase
=
Hero
(
"垭瑟"
,
300
,
20
)
hoyi
=
Hero
(
"后羿"
,
250
,
23
)
zhuaizhuaixion
=
Hero
(
"拽拽熊"
,
0.01
,
0.0000000001
)
def
upgarde
():
yase
.
level
+=
1
hoyi
.
hp
+=
1
zhuaizhuaixion
.
attack
+=
1
upgarde
()
def
upgarde
(
self
):
silf
.
level
+=
1
silf
.
hp
+=
1
silf
.
attack
+=
1
yase
.
upgarde
()
k
.
upgarde
()
print
(
yase
.
hp
)
print
(
hoyi
.
hp
)
print
(
zhuaizhuaixion
.
hp
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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