Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_2
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
e29a844a
authored
Sep 04, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4425a520
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
giy.py
giy.py
View file @
e29a844a
class
HERO
:
class
HERO
:
def
__init__
(
self
):
def
__init__
(
self
,
HP
,
level
,
attack
):
self
.
HP
=
999999999999999
self
.
HP
=
HP
self
.
level
=
99999999999999
self
.
level
=
level
self
.
attack
=
99999999999999
self
.
attack
=
attack
yase
=
HERO
()
yase
=
HERO
(
"张三"
,
30000000000000
,
999999999999999999999999999999999999
)
print
(
yase
.
HP
)
houyi
=
HERO
(
"马牛逼"
,
999999999999999999999999
,
999999999999999999999999
)
\ No newline at end of file
print
(
"张三的血量"
,
yase
.
HP
)
print
(
"马牛逼的血量"
,
houyi
.
HP
)
\ 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