Commit 2b29aff1 by BellCodeEditor

auto save

parent bcc59bd6
Showing with 6 additions and 0 deletions
......@@ -5,10 +5,16 @@
import turtle
#创建画笔工具
pen = turtle.Pen()
#设置填充颜色
pen.fillcolor("red")
#开始填充
pen.begin_fill()
#循环5次
for i in range(5):
pen.forward(200)
pen.right(144)
#结束填充
pen.end_fill()
#隐藏画笔
pen.hideturtle()
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