要设置填充色,t.fillcolor("red")
import turtlet = turtle.Turtle()t.fillcolor("red")t.begin_fill()t.hideturtle()t.up()t.goto(-50, -50)t.left(36)t.down()for i in range(5): t.forward(200) t.left(144)t.end_fill()