Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_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
989b7f77
authored
Mar 15, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f7ca5969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
diy1.py
diy1.py
View file @
989b7f77
# name=input("输入名字")
# print(name+"你好")
import
turtle
pen
=
turtle
.
Pen
()
pen
.
shape
(
"turtle"
)
pen
.
fillcolor
(
"green"
)
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
200
)
pen
.
left
(
144
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
# # name=input("输入名字")
# # print(name+"你好")
# import turtle
# pen=turtle.Pen()
# pen.shape("turtle")
# pen.fillcolor("green")
# pen.fillcolor("red")
# pen.begin_fill()
# for i in range(5):
# pen.forward(200)
# pen.left(144)
# pen.end_fill()
# pen.hideturtle()
# turtle.done()
player
=
input
(
"请出拳:石头剪刀布"
)
print
(
"玩家出拳"
+
player
)
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