用python画微笑脸表情_python画表情包

5432000f5b90cfb1d173cfff40e2193c8e54b374.pngpython绘表情包

表情包有部分不完美,请读者自行修改!

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()

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值