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
e0469ef1
authored
Apr 20, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5aff3efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
asdf.py
asdf.py
View file @
e0469ef1
class
Heor
:
def
__init__
(
self
):
def
__init__
(
self
,
name
,
hp
,
attack
):
self
.
level
=
999
self
.
hp
=
1000000000
self
.
attack
=
666666666
self
.
name
=
name
self
.
hp
=
hp
self
.
attack
=
attack
lan
=
Heor
(
"lan"
,
100000000000
,
6666666666
)
xuan
=
Heor
(
"xuan"
,
123456789
,
987654321
)
he
=
Heor
(
"he"
,
2468013579
,
1357924680
)
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
)
lan
=
Heor
()
print
(
"lan的等级为:"
,
lan
.
level
)
print
(
"lan的血量为:"
,
lan
.
hp
)
print
(
"lan的攻击为:"
,
lan
.
attack
)
\ 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