Python第2阶段turtle表情包

 笑脸

 

import turtle as t

t.ht()

t.pensize(5)

#脸

t.color('orange','yellow')

t.begin_fill()

t.penup()

t.goto(0,-200)

t.pendown()

t.circle(200)

t.end_fill()

#嘴

t.color('brown')

t.penup()

t.goto(-100,-80)

t.pendown()

t.setheading(-60)

t.circle(110,120)

#右眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(100,80)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

#左眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(-60,80)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

t.done()

欠打

import turtle as t

t.ht()

t.pensize(5)

#脸

t.color('orange','yellow')

t.begin_fill()

t.penup()

t.goto(0,-200)

t.pendown()

t.circle(200)

t.end_fill()

#嘴

t.color('brown')

t.penup()

t.goto(-100,-100)

t.pendown()

t.setheading(60)

t.circle(-110,120)

#右眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(100,80)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

#左眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(-60,80)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

t.penup()

t.goto(100,100)

t.pendown()

t.write('你瞅啥',font=('宋体',50))

t.done()

大笑

import turtle as t

t.ht()

t.pensize(5)

#脸

t.color('orange','yellow')

t.begin_fill()

t.penup()

t.goto(0,-200)

t.pendown()

t.circle(200)

t.end_fill()

#嘴

t.color('brown','red')

t.begin_fill()

t.penup()

t.goto(-150,0)

t.pendown()

t.setheading(-90)

t.circle(150,180)

t.setheading(180)

t.forward(300)

t.end_fill()

t.color('white','white')

t.begin_fill()

t.penup()

t.goto(-100,-5)

t.pendown()

t.setheading(-90)

t.forward(20)

t.left(90)

t.forward(200)

t.left(90)

t.forward(20)

t.left(90)

t.forward(200)

t.end_fill()

#右眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(100,100)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

#左眼

t.color('brown','white')

t.begin_fill()

t.penup()

t.goto(-90,100)

t.pendown()

t.circle(30)

t.end_fill()

t.color('black','black')

t.begin_fill()

t.circle(20)

t.end_fill()

t.done()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值