Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-1
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
a59efa2d
authored
May 01, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d09ad4cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
diy.py
diy.py
View file @
a59efa2d
...
@@ -12,14 +12,15 @@ class Hero:
...
@@ -12,14 +12,15 @@ class Hero:
self
.
hp
=
hp
self
.
hp
=
hp
self
.
attack
=
attack
self
.
attack
=
attack
def
frfgrde
():
def
frfgrde
(
self
):
wukong
.
level
=
wukong
.
level
+
1
self
.
level
=
wukong
.
level
+
1
wukong
.
hp
=
wukong
.
hp
+
50
self
.
hp
=
wukong
.
hp
+
50
self
.
attack
=
wukong
.
attack
+
200
wukong
=
Hero
(
"悟空"
,
200
,
4
0
)
wukong
=
Hero
(
"悟空"
,
200
,
30
0
)
yase
=
Hero
(
"亚瑟"
,
300
,
20
)
yase
=
Hero
(
"亚瑟"
,
300
,
20
)
print
(
wukong
.
hp
)
frfgrde
()
wukong
.
frfgrde
()
frfgrde
()
print
(
"悟空的初始血量值为:"
,
wukong
.
hp
)
print
(
"升级两次后"
,
wukong
.
hp
)
yase
.
frfgrde
()
print
(
yase
.
attack
)
print
(
"亚瑟的初始血量值为:"
,
yase
.
hp
)
\ No newline at end of file
\ 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