Commit 1185d55d by BellCodeEditor

save project

parent db4ec920
Showing with 23 additions and 0 deletions
#导入模块
import turtle
#设置画笔
p=turtle.Pen()
#设置画笔速度
p.speed(1000)
#设置画笔颜色
p.color("yellow")
#设置填充颜色
p.fillcolor("red")
p.begin_fill()
#画笔重复36次
for i in range(36):
#设置移动
p.forward(200)
#设置方向
p.left(170)
#结束填充
p.end_fill()
#隐藏画笔
hidpturtle()
#固定画布
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment