Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-2_DIY1
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
c5b23efc
authored
Jan 16, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
608fd84e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
46 deletions
diy1.py
diy1.py
View file @
c5b23efc
#SB出拳a
import
turtle
#SB出拳b
print
(
"五角星"
)
#SB出拳c
p
=
turtle
.
pen
()
#SB出拳d
#p.begin_full()
#SB出拳e
for
i
in
range
(
5
):
#SB出拳f
p
.
forword
(
200
)
#SB出拳g
p
.
left
(
144
)
#SB出拳h
#p.end_full()
#SB出拳i
turtle
.
done
()
#SB出拳g
\ No newline at end of file
#SB出拳k
#SB出拳l
#SB出拳m
#SB出拳n
#SB出拳o
#SB出拳p
#SB出拳q
#SB出拳r
#SB出拳s
#SB出拳t
#SB出拳u
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
#SB出拳o
import
random
# 玩家出拳
a
=
input
(
"剪刀/石头/布"
)
print
(
"玩家出"
+
a
)
s
=
[
"剪刀"
,
"石头"
,
"布"
]
d
=
random
.
choice
(
s
)
print
(
d
)
if
(
d
==
a
):
print
(
"平局"
)
elif
(
a
==
"剪刀"
and
d
==
"石头"
):
elif
(
a
==
"石头"
and
d
==
"剪刀"
):
elif
(
a
==
"布"
and
\ 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