t.left(120)
t.fillcolor("#fff000")
def draw_circle():
t.begin_fill()
t.hideturtle()
t.pensize(4)
l=150
t.color("green")
t.circle(-l,90)
t.right(90)
t.forward(300)
t.right(90)
t.circle(-l,90)
t.fillcolor("green")
t.end_fill()
draw_circle()
t.seth(0)
t.back(150)
t.seth(0)
t.begin_fill()
t.fillcolor("red")
for i in range(3):
draw()
t.end_fill()
t.exitonclick() #turtle执行完后保留那个页面
标签:150,draw,三角形,fillcolor,90,半圆,绘制,circle,fill
From: https://www.cnblogs.com/JK8395/p/16793710.html