Commit 8712e7d6 by BellCodeEditor

save project

parent ef3eebd5
Showing with 21 additions and 0 deletions
#导入turtle库
import turtle
#导入画笔
p=turtle.Pen()
#设置填充颜色
p.fillcolor("red")
#开始填充
p.begin_fill()
#循环画图
for i in range(5):
#移动
p.forward(200)
#转向
p.left(144)
#结束填充
p.end_fill()
#隐藏画笔
p.hideturtle()
#保持画布
turtle.done()
\ No newline at end of file
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