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
faf4d48b
authored
Nov 13, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
56ce862c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
diy.py
diy.py
View file @
faf4d48b
class
Hole
:
class
Hole
:
def
__init__
(
self
):
def
__init__
(
self
,
name
,
sudu
,
gongji
,
shenming
):
self
.
sudu
=
6000
self
.
lkj
=
1
self
.
gongji
=
5
self
.
name
=
name
self
.
shenming
=
200
self
.
sudu
=
sudu
lanseyaoji
=
Hole
()
self
.
gongji
=
gongji
print
(
lanseyaoji
.
sudu
)
self
.
shenming
=
shenming
\ No newline at end of file
lanseyaoji
=
Hole
(
"蓝色妖姬"
,
6000
,
150
,
200
)
hongsefenbao
=
Hole
(
"红色风暴"
,
200
,
400
,
500
)
print
(
"蓝色妖姬的速度:"
,
lanseyaoji
.
sudu
)
\ 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