2022虎年画虎,趣味pythong小程序

本文介绍了2022虎年使用Python编程实现的一个趣味画虎小程序,通过代码展示如何在新的一年里结合编程技术创作出富有节日气息的图形艺术。
摘要由CSDN通过智能技术生成

2022虎年画虎,趣味小程序

 

 

#画虎
import turtle as t
t.penup()
#绘制大脸
t.goto(-40,-60)
t.pendown()
#t.left(120)
t.fillcolor("yellow")
t.begin_fill()
t.circle(150,30)
t.circle(50,60)
t.circle(100,90)
t.circle(100,90)
t.circle(50,60)
t.circle(150,30)
t.end_fill()
#绘制胡须
t.penup()
t.left(0)
t.goto(-110,-20)
t.pendown()
t.fd(-80)
t.penup()
t.left(10)
t.goto(-90,-30)
t.pendown()
t.fd(-70)

t.penup()
t.left(-10)
t.goto(30,-20)
t.pendown()
t.fd(80)
t.penup()
t.left(-10)
t.goto(20,-30)
t.pendown()
t.fd(70)
#绘制鼻子
t.penup()
t.left(20)
t.goto(-30,-30)
t.pendown()
t.circle(20,80)
t.circle(5,60)
t.circle(30,60)
t.circle(5,60)
t.circle(20,80)
t.circle(5,60)


#绘制嘴巴
t.penup()
t.left(10)
t.goto(-30,-30)
t.pendown()
t.circle(20,-40)
t.circle(30,-30)

t.circle(20,-40)
t.penup()
t.left(-10)
t.goto(-30,-30)
t.pendown()
t.cir
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值