python绘表情包
表情包有部分不完美,请读者自行修改!
from turtle import*
speed(1)
pensize(3)
setup(400,400)
pu()
goto(-100,-100)
seth(180)
pd()
circle(-5,170)
seth(80)
fd(100)
bk(30)
pu()
seth(180)
fd(10)
pd()
seth(165)
circle(-10,110)
fd(30)
seth(140)
circle(-60,270)
seth(40)
fd(70)
seth(210)
pu()
pd()
bk(2.5)
circle(-4,180)
seth(30)
circle(-10,90)
seth(40)
fd(18)
seth(200)
seth(-50)
fd(3)
seth(-140)
fd(14)
seth(-40)
fd(9)
seth(199)
fd(19)
seth(230)
fd(70)
seth(120)
pu()
fd(15)
seth(180)
fd(8)
pd()
seth(-60)
fd(30)
seth(-85)
fd(85)
seth(0)
circle(-5,180)
fd(50)
seth(110)
fd(10)
seth(180)
fd(6)
seth(-100)
fd(13)
seth(180)
fd(58)
pu()
#画眼睛
goto(-70,75)
pd()
pensize(8)
bk(2)
pu()
left(90)
fd(10)
pd()
pensize(4)
pencolor("pink")
seth(250)
fd(18)
pu()
bk(18)
seth(180)
fd(8)
seth(250)
pd()
fd(15)
pu()
#眼睛,嘴,表情
goto(-25,75)
pd()
pencolor("black")
pensize(8)
bk(2)
pu()
left(90)
fd(15)
seth(0)
fd(8)
pd()
pensize(4)
pencolor("pink")
seth(250)
fd(11)
pu()
bk(10)
seth(180)
fd(8)
seth(250)
pd()
fd(15)
pu()
seth(180)
fd(40)
seth(90)
fd(8)
pd()
pencolor("black")
pensize(3)
seth(270)
circle(8,180)
#画爱心
pu()
pencolor("pink")
seth(90)
fillcolor("pink")
goto(90,105)
pd()
begin_fill()
fd(10)
right(45)
circle(-10,180)
fd(18)
seth(135)
fd(18)
circle(-10,180)
end_fill()
#打印“Biu”
pencolor("black")
pu()
goto(80,50)
pd()
write("Biu",font=("楷体",18,'normal'))
hideturtle()
done()