import turtle as t
t.speed(0)
t.hideturtle()
t.pencolor("red")
# 绘制外圆
t.penup()
t.goto(0,-120)
t.pendown()
t.circle(120)
t.penup()
t.home()
t.color("black")
t.fillcolor('yellow')
# 绘制12个三角形图案
for i in range(12):
t.setheading(30 * i)
t.penup()
t.forward(120)
t.pendown()
# 开始绘制三角形
t.begin_fill()
t.left(30)
t.forward(80)
t.right(60)
t.forward(80)
t.right(120)
t.forward(80)
t.right(60)
t.forward(80)
t.end_fill()
t.penup()
t.home() # 返回原点