circle(120, 25)
setheading(-145)
forward(30)
setheading(180)
circle(-20, 20)
setheading(143)
forward(30)
end_fill()
penup()
# 将海龟移动到指定的坐标
goto(0, 0)
pendown()
def eye():
“”“画眼睛”“”
左眼
color(“black”, “black”)
penup()
goto(-110, 27)
pendown()
begin_fill()
setheading(0)
circle(24)
end_fill()
左眼仁
color(“white”, “white”)
penup()
goto(-105, 51)
pendown()
begin_fill()
setheading(0)
circle(10)
end_fill()
右眼
color(“black”, “black”)
penup()
goto(25, 40)
pendown()
begin_fill()
setheading(0)
circle(24)
end_fill()