Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_4
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
7beb0bae
authored
Nov 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e11c874f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
diy1.py
jiu.py
diy1.py
View file @
7beb0bae
...
@@ -45,24 +45,8 @@ class Player(Hero):
...
@@ -45,24 +45,8 @@ class Player(Hero):
houyi
=
Player
(
"射手"
,
"后羿"
)
houyi
=
Player
(
"射手"
,
"后羿"
)
yase
=
Hero
(
"垭瑟"
)
yase
=
Hero
(
"垭瑟"
)
print
(
"="
*
30
)
print
(
30
*
"-"
)
print
(
" 敌军还有五秒到达战场"
)
print
(
"refgehrg"
)
print
(
"="
*
30
)
while
True
:
while
True
:
cz
=
input
(
"Come And Fight Me! "
)
print
(
30
*
"-"
)
if
cz
==
"1"
:
choice
=
input
(
"fdyfyt"
)
houyi
.
combat
(
yase
)
\ No newline at end of file
elif
cz
==
"2"
:
houyi
.
cure
()
elif
cz
==
"quit"
:
print
(
"hahah you damn kid"
)
break
else
:
print
(
"you kidding??"
)
continue
ai
=
random
.
randint
(
0
,
3
)
print
(
ai
)
if
ai
==
1
:
yase
.
cure
()
else
:
yase
.
combat
(
houyi
)
\ No newline at end of file
jiu.py
0 → 100644
View file @
7beb0bae
import
turtle
scree
=
turtle
.
Screen
()
scree
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"yyggygygygygyg"
)
pen
.
hideturtle
()
a
=
turtle
.
Pen
()
a
.
fillcolor
(
"black"
)
a
.
begin_fill
()
for
i
in
range
(
12
):
a
.
forward
(
200
)
a
.
left
(
150
)
a
.
end_fill
()
a
.
hideturtle
()
turtle
.
done
()
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