代码如下:
#Five_Star.py
import turtle
turtle.pensize(5)
turtle.pencolor('red')
turtle.begin_fill()
turtle.fillcolor('blue')
turtle.forward(200)
turtle.right(144)
turtle.fd(200)
turtle.right(144)
turtle.fd(200)
turtle.right(144)
turtle.fd(200)
turtle.right(144)
turtle.fd(200)
turtle.end_fill()
turtle.fillcolor('yellow')
turtle.begin_fill()
for i in range(5):
turtle.pencolor('green')
turtle.fd(100)
turtle.right(144)
turtle.end_fill()
结果如下: