python画笑脸
程序源代码
import turtle
#画脸
t = turtle.Pen()
t.speed(15)
#t.circle(150)
#t.color('orange')
t.fillcolor('yellow')
t.up()
t.begin_fill()
t.goto(0, -150)
t.circle(150)
t.down()
t.end_fill()
#画嘴
#t.coler('black')
t.pensize(3)
t.up()
t.goto(-70, -70)
t.down()
t.seth(-90)
t.circle(70, 180)
#画眉毛
#画左眉
t.pensize(2)
t.up()
t.goto(-40, 75)
t.down()
t.seth(90)
t.circle(30, 180)
#画右眉
t.pensize(2)
t.up()
t.goto(80, 75)
t.down()
t.seth(90)
t.circle(30, 180)
#画左眼睛
t.pensize(13)
t.up()
t.goto(-83, 60)
t.down()
t.circle(10)
#画右眼
t.pensize