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
6c7c37f6
authored
Jun 26, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
864e67a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
cc.py
diy.py
cc.py
0 → 100644
View file @
6c7c37f6
diy.py
View file @
6c7c37f6
class
hero
:
class
hero
:
def
__init__
(
self
):
def
__init__
(
self
,
name
,
level
,
hp
,
attack
):
self
.
name
=
name
self
.
level
=
1
self
.
level
=
1
self
.
hp
=
3936
self
.
hp
=
hp
self
.
attack
=
482
self
.
attack
=
attack
qiwang
=
hero
()
x
=
hero
(
"x"
,
7989
,
78
)
print
(
"xxxxx:"
,
qiwang
.
hp
)
j
=
hero
(
"x"
,
5239
,
158
)
print
(
"xxxxx:"
,
qiwang
.
attack
)
print
(
"xxx:"
,
x
,
hp
)
\ No newline at end of file
print
(
"xxx:"
,
x
,
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