from turtle import*
def move(x, y):
penup()
goto(x, y)
pendown()
move(0, -200)
penup()
pencolor('yellow')
fillcolor('yellow')
pendown()
begin_fill()
circle(200)
end_fill()
#=======眼睛========
move(-120, 80)
pencolor('black')
pensize(5)
seth(90)
circle(-40,180)
move(40, 80)
seth(90)
circle(-40,180)
#=======嘴=========
move(-120, -25)
seth(90)
fillcolor('white')
begin_fill()
goto(120, -25)
circle(120,-180)
end_fill()
move(-80, -25)
goto(-80, -108)
move(-40, -25)
goto(-40, -132)
move(0, -25)
goto(0, -145)
move(40, -25)
goto(40, -132)
move(80, -25)
goto(80, -108)
#=======眉毛========
move(-190, 190)
seth(90)
circle(-30, 150)
move(190, 190)
seth(90)
circle(30, 150)
哈哈,博君一笑 |