Commit aea934ee by BellCodeEditor

auto save

parent fa0dff60
Showing with 21 additions and 0 deletions
#导入turtle库
import turtle
#设置画笔
pen = turtle.Pen()
#设置填充颜色
pen.fillcolor("red")
#设置画笔颜色
pen.color("red")
#开始填充
pen.begin_fill()
#画五角星
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