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
36a85871
authored
Mar 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5587c852
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
12 deletions
diy.py
jk.py
diy.py
View file @
36a85871
class
Hero
:
def
__init__
(
self
,
name
,
hp
,
attack
):
self
.
level
=
1000000000000000000000000000000
self
.
name
=
name
self
.
hp
=
hp
self
.
attack
=
attack
yase
=
Hero
(
"垭瑟"
,
3000000000000000000000000000000
,
2000000000000000000000000000000
)
houyi
=
Hero
(
"后羿"
,
2400000000000000000000000000000
,
2300000000000000000000000000000
)
print
(
"垭瑟的血量值为:"
,
yase
.
hp
)
print
(
"后羿的血量值为:"
,
houyi
.
attack
)
\ No newline at end of file
a
=
int
(
input
(
"0~61"
))
if
0
<=
a
<=
6
:
print
(
"少发"
)
else
:
if
7
<=
a
<=
19
:
print
(
"0发"
)
else
:
if
20
<=
a
<=
30
:
print
(
"发"
)
else
:
print
(
"1发"
)
\ No newline at end of file
jk.py
0 → 100644
View file @
36a85871
import
turtle
turtle
.
pen
()
turtle
.
color
(
"red"
)
turtle
.
pensize
(
10
)
turtle
.
goto
(
0
,
0
)
turtle
.
left
(
90
)
turtle
.
forward
(
100
)
turtle
.
forward
(
-
50
)
turtle
.
left
(
90
)
turtle
.
forward
(
50
)
turtle
.
forward
(
-
100
)
turtle
.
left
(
90
)
turtle
.
circle
(
-
50
)
turtle
.
done
()
\ 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