Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
5ab25329
authored
Dec 16, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
578e41ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
9 deletions
diy.py
func.py
ieihihih.py
diy.py
0 → 100644
View file @
5ab25329
pltly
=
input
(
'请出拳:'
)
print
(
"玩家出拳"
+
pltly
)
import
random
list
[
"石头"
,
"布"
,
"剪刀"
]
computer
=
random
.
choice
(
list
)
print
(
"电脑出拳:"
+
computer
)
if
plter
==
"石头"
and
computer
==
"剪刀"
:
print
(
"玩家赢!"
)
if
plter
==
"剪刀"
and
computer
==
"布"
:
print
(
"玩家赢!"
)
if
plter
==
"布"
and
computer
==
"石头"
:
print
(
"玩家赢!"
)
if
plter
==
"石头"
and
computer
==
"布"
:
print
(
"电脑赢!"
)
\ No newline at end of file
func.py
View file @
5ab25329
total
=
[]
import
turtle
while
True
:
pen
=
turtle
.
Pen
()
unit
=
input
(
"请输入:"
)
size
=
input
(
"提示"
,
"你想要多大的魔法阵呀?"
)
if
unit
==
'q'
:
pen
.
circle
(
size
)
break
pen
.
circle
(
size
,
360
,
3
)
else
:
pen
.
circle
(
size
,
60
)
total
.
append
(
unit
)
pen
.
circle
(
size
,
360
,
3
)
print
(
total
)
turtle
.
done
()
\ No newline at end of file
\ No newline at end of file
ieihihih.py
0 → 100644
View file @
5ab25329
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
pen
.
fillcolor
(
"red"
)
pen
.
penup
()
pen
.
goto
(
80
,
0
)
pen
.
write
(
"祝老师工作顺利,
\n
年年有余!"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
penup
()
pen
.
goto
(
-
5
,
-
23
)
pen
.
begin_fill
()
pen
.
pencolor
(
"red"
)
pen
.
pendown
()
pen
.
right
(
45
)
pen
.
circle
(
50
,
180
)
for
i
in
range
(
7
):
pen
.
right
(
135
)
pen
.
circle
(
50
,
180
)
pen
.
end_fill
()
pen
.
hideturtle
()
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