五角星绘制Python
import turtle
turtle.fillcolor("red")
turtle.begin_fill()
turtle.begin_fill()
count = 1
while count <= 5:
turtle.forward(100)
turtle.right(144)
count += 1
turtle.end_fill()
turtle.forward(100)
turtle.right(144)
count += 1
turtle.end_fill()
浙公网安备 33010602011771号