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:傻熊维尼绘画视频

 

posted on 2019-05-15 12:50  刘俊结  阅读(331)  评论(0编辑  收藏  举报

导航