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
1633dfea
authored
Sep 16, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f47689a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
diy.py
diy.py
View file @
1633dfea
class
Hero
:
def
__init__
(
self
,
name
,
HP
,
attack
):
self
.
lever
=
999
self
.
name
=
name
self
.
HP
=
HP
self
.
attack
=
attack
yase
=
Hero
(
"垭瑟"
,
9999
,
999999
)
houyi
=
Hero
(
"后裔"
,
99999
,
9999
)
FM
=
Hero
(
"范马勇次郎"
1000000
,
99999999999
,
9999999999999
)
print
(
yase
.
lever
)
print
(
yase
.
HP
)
print
(
yase
.
attacc
)
def
zenjia1
():
yase
.
lever
=
yase
.
lever
+
1
yase
.
HP
=
yase
.
HP
+
999999
yase
.
attacc
=
yase
.
attacc
+
999999
def
zenjia2
():
houyi
.
lever
=
yase
.
lever
+
1
houyi
.
HP
=
yase
.
HP
+
999999
houyi
.
attacc
=
yase
.
attacc
+
999999
def
zenjia3
():
FM
.
lever
=
yase
.
lever
+
1
FM
.
HP
=
yase
.
HP
+
999999
FM
.
attacc
=
yase
.
attac1
+
999999
\ 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