用python画滑稽表情_Python-画一个滑稽

给自己看的一个备份。

import turtle as t

t.speed(20)

t.pensize(5)

#脸

t.pencolor("orange")

t.begin_fill()

t.penup()

t.goto(0,-200)

t.pendown()

t.fillcolor("Yellow1")

t.circle(200)

t.end_fill()

#嘴

t.pencolor("brown")

t.penup()

t.goto(0,-175)

t.pendown()

t.circle(170,80)

t.left(180)

t.circle(-170,160)

t.seth(0)

#眼睛

t.pensize(3)

#右眼框

t.penup()

t.goto(30,75)

t.pendown()

t.seth(40)

t.fillcolor("white")

t.begin_fill()

t.circle(-110,95)

pos1=t.pos()

#print(pos1)

t.penup()

t.goto(30,75)

t.pendown()

t.seth(-140)

t.circle(18,180)

t.circle(-80,80)

t.goto(pos1)

t.end_fill()

#右眼珠

t.pencolor("black")

t.penup()

t.goto(45,60)

t.pendown()

t.begin_fill()

t.fillcolor("black")

t.circle(8)

t.end_fill()

#左眼框

t.pencolor("brown")

t.penup()

t.goto(-170,75)

t.pendown()

t.begin_fill()

t.fillcolor("white")

t.seth(40)

t.circle(-110,95)

pos2=t.pos()

t.penup()

t.goto(-170,75)

t.pendown()

t.seth(-140)

t.circle(18,180)

t.circle(-80,80)

t.goto(pos2)

t.end_fill()

#左眼珠

t.pencolor("black")

t.penup()

t.goto(-155,60)

t.pendown()

t.begin_fill()

t.fillcolor("black")

t.circle(8)

t.end_fill()

#腮红

t.penup()

t.goto(150,-20)

t.pencolor("pink")

t.pendown()

t.begin_fill()

t.fillcolor("pink")

t.circle(30)

t.end_fill()

t.penup()

t.goto(-180,-20)

t.pencolor("pink")

t.pendown()

t.begin_fill()

t.fillcolor("pink")

t.circle(30)

t.end_fill()

t.hideturtle()

t.done()

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值