"""
设计:Python程序设计
作者:初学者
日期:2022年 10月 02日
"""
import turtle as pd
pd.setup(960, 640)
pd.bgcolor("red")
pd.fillcolor("yellow")
pd.color("yellow")
pd.speed(4)
params_list = [-416, 192, 192, 0,
-186, 276, 64, -22.5,
-108, 216, 64, -45,
-126, 108, 64, 0,
-186, 54, 64, -22.5
]
i = 0
long = len(params_list)
while i < long:
draw1 = params_list[i]
draw2 = params_list[i + 1]
draw3 = params_list[i + 2]
draw4 = params_list[i + 3]
i += 4
pd.begin_fill()
pd.up()
pd.goto(draw1, draw2)
pd.setheading(draw4)
pd.down()
j = 0
while j < 5:
j += 1
pd.forward(draw3)
pd.right(144)
pd.end_fill()
pd.hideturtle()
pd.Screen().exitonclick()