import turtle as t
t.speed(0)
t.hideturtle()
t.penup()
t.goto(150,8)
t.setheading(90)
t.pendown()
# 绘制六芒星中间的正六边形
t.fillcolor('red')
t.begin_fill()
t.circle(150,360,6)
t.end_fill()
# 绘制六芒星的六个角
t.setheading(0)
t.pencolor('white')
t.fillcolor('green')
for i in range(6): # 循环6次画6个三角形
t.begin_fill()
t.setheading(60*(i+1))
t.forward(150)
t.left(120)
t.forward(150)
t.end_fill()