turtle绘画作业

Part1:20181305081 唐远航

          20181305085 刘俊结

Part2:

import turtle as t
t.speed(0)
t.setup(1000,800)
t.color('brown','yellow')
t.pensize(10)
t.begin_fill()
t.pu()
t.goto(175,50)
t.pd()
t.seth(90)
t.circle(175,180)
# 下半脸
for i in range(1,68):
    t.seth(-135+2*i)
    t.fd(4+i/15)
for i in range(1,68):
    t.seth(2*i)
    t.fd(4+(67-i)/15)
t.pu()
t.goto(175/2*3**(1/2),50+175/2)
t.pd()
t.seth(0)
t.circle(60,270)
t.pu()
t.goto(-175/2,50+175/2*3**(1/2))
t.pd()
t.seth(90)
t.circle(60,270)
t.end_fill()
t.pu()
t.goto(175/2,50+175/2)
t.pd()
for i in range(10):
    t.seth(-9*i)
    t.fd(6)
t.pu()
t.goto(-175/2,50+175/2)
t.pd()
t.seth(180)
for i in range(10):
    t.seth(180+9*i)
    t.fd(6)
t.pu()
t.goto(-70*(3**(1/2)),-70)
t.pd()
t.seth(300)
t.circle(140,120)
t.color('brown')
t.pensize(5)
t.pu()
t.goto(175/2+20,30)
t.pd()
t.seth(90)
t.begin_fill()
t.circle(15,720)
t.end_fill()
t.pu()
t.goto(-175/2-20,30)
t.seth(270)
t.pd()
t.begin_fill()
t.circle(15,720)
t.end_fill()
t.pu()
t.goto(0,20)
t.pd()
t.seth(180)
t.begin_fill()
t.fd(10*(3**(1/2)))
t.circle(10,120)
t.fd(20*(3**(1/2)))
t.circle(10,120)
t.fd(20*(3**(1/2)))
t.circle(10,120)
t.fd(10*(3**(1/2)))
t.end_fill()

part3:傻熊维尼绘画视频

 

转载于:https://www.cnblogs.com/JohnsonL/p/10868788.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值