Commit bafa13dc by BellCodeEditor

auto save

parent 0edd9d2e
Showing with 20 additions and 0 deletions
import turtle
#创建一个画笔
pen = turtle.Pen()
#设置画笔的颜色
pen.fillcolor("red")
#开始填充颜色的位置
pen.begin_fill()
#画五角星
for i in range(5):
pen.forward(200)
pen.right(144)
#结束填充颜色的位置
pen.end_fill()
#隐藏画笔
pen.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