Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_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
ce0c3bac
authored
Apr 20, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e0469ef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
asdf.py
asdf.py
View file @
ce0c3bac
...
...
@@ -5,6 +5,11 @@ class Heor:
self
.
hp
=
hp
self
.
attack
=
attack
def
a
():
lan
.
level
=
lan
.
level
+
1
lan
.
hp
=
lan
.
hp
+
50000
lan
.
attack
=
lan
.
attack
+
4000
lan
=
Heor
(
"lan"
,
100000000000
,
6666666666
)
xuan
=
Heor
(
"xuan"
,
123456789
,
987654321
)
he
=
Heor
(
"he"
,
2468013579
,
1357924680
)
...
...
@@ -17,4 +22,13 @@ print("轩的攻击为:",xuan.attack)
print
(
"赫的等级为:"
,
he
.
level
)
print
(
"赫的血量为:"
,
he
.
hp
)
print
(
"赫的攻击为:"
,
he
.
attack
)
a
()
print
(
"兰的等级为:"
,
lan
.
level
)
print
(
"兰的血量为:"
,
lan
.
hp
)
print
(
"兰的攻击为:"
,
lan
.
attack
)
print
(
"轩的等级为:"
,
xuan
.
level
)
print
(
"轩的血量为:"
,
xuan
.
hp
)
print
(
"轩的攻击为:"
,
xuan
.
attack
)
print
(
"赫的等级为:"
,
he
.
level
)
print
(
"赫的血量为:"
,
he
.
hp
)
print
(
"赫的攻击为:"
,
he
.
attack
)
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