Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson20-diy4
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
61122b4f
authored
Jun 22, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d4e182ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
2 deletions
1.py
4.py
jde.py
user.txt
1.py
0 → 100644
View file @
61122b4f
class
Dog
:
def
__init__
(
self
):
self
.
footNum
=
4
self
.
eyeNum
=
2
self
.
head
=
1
self
.
earsNum
=
2
self
.
skin
=
"white"
def
run
(
self
):
print
(
""
)
class
Husky
(
Dog
):
def
__init__
()
super
()
.
__init__
()
self
.
skin
=
"black"
coco
=
Husky
()
print
(
coco
.
skin
)
\ No newline at end of file
4.py
0 → 100644
View file @
61122b4f
jde.py
0 → 100644
View file @
61122b4f
class
Hero
:
def
__init__
(
self
,
name
):
self
.
level
=
1
self
.
hp
=
250
self
.
attck
=
40
self
.
namer
=
name
def
combat
(
self
,
enemy
):
enemy
.
hp
-=
self
.
attck
infor1
=
self
.
name
+
"dui"
+
enemy
.
name
+
"faqigoonegji"
infor2
=
"zaocheng"
+
str
(
self
.
attck
)
+
"EBHGFTGH"
user.txt
View file @
61122b4f
{"admin": "admin", "python": "123456"}
\ No newline at end of file
\ 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