python滑稽脸程序
from turtle import *
#设置画笔
setup(600,600)
pensize(2)
penup()
goto(0,-150)
pendown()
#圆脸
pendown()
color("yellow")
begin_fill()
circle(150,360)
end_fill()
#嘴
penup()
goto(-120,0)
pendown()
left(270)
pensize(10)
color("orange")
circle(120,180)
#左眼
penup()
goto(-130,70)
pendown()
left(150)
pensize(2)
color("orange","white")
begin_fill()
circle(70,-118)
circle(20,-150)
left(160)
circle(45,90)
left(180)
circle(20,-150)
end_fill()
#右眼
penup()
goto(10,70)
pendown()
left(-14)
pensize(2)
color("orange","white")
begin_fill()
circle(70,-118)
circle(20,-150)
left(160)
circle(45,90)
left(180)
circle(20,-150)
end_fill()
#左眼珠
penup()
goto(-128,68)
pendown()
pensize(2)
color("black")
begin_fill()
circle(15,360)
end_fill()
#右眼珠
penup()
goto(11.5,67.5)
pendown()
pensize(2)
color("black")
begin_fill()
circle(15.2,360)
end_fill()
penup()
goto(200,200)
pendown()
#结束作画
done()