Commit d1cf411e by BellCodeEditor

save project

parent fa0dff60
Showing with 21 additions and 0 deletions
import turtle
#开始模块
pen=turtle.Pen()
#准备
pen.shape("turtle")
#画笔模型
pen.fillcolor("red")
#填充颜色
pen.begin_fill()
#准备开始填充
for i in range(36):
pen.forward(200)
pen.right(230)
#制作五角星
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