1 import turtle #导入turtle库包 2 turtle.fillcolor("red") #填充颜色 3 turtle.begin_fill() #开始画,类似起笔 4 count = 1 #计时器,用于计录次数 5 while count <= 5: #控制绘制次数 6 turtle.forward(100) #画笔绘制的方向,向前移动指定的距离 7 turtle.right(144) #向右转144度 8 count += 1 #循环绘制 9 10 turtle.end_fill() #完成填充图片的绘制。