Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-1_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
eb94d356
authored
Dec 01, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c256c561
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
diy1.py
diy1.py
View file @
eb94d356
# 我们都爱夸夸夸
# name=input("请问你叫什么名字")
# print(name+",你好呀")
# import turtle #导入turtle库
# pen=turtle.Pen() #调用画笔
# pen.fillcolor("red") #设置画笔颜色
# pen.begin_fill() #开始填充
# for i in range(4): #重复执行4次
# pen.forward(200) #移动200步
# pen.left(90) #左转90度
# pen.end_fill() #结束填充
# pen.hideturtle() #隐藏画笔
# turtle.done() #保存画布
import
turtle
pen
=
turtle
.
Pen
()
pen
.
hideturtle
()
pen
.
shape
(
"arrow"
)
pen
.
fillcolor
(
"yellow"
)
pen
.
begin_fill
()
for
i
in
range
(
3
):
for
i
in
range
(
36
):
pen
.
forward
(
10
)
pen
.
left
(
10
)
pen
.
end_fill
()
pen
.
forward
(
100
)
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