蟒蛇绘制

通过python绘制蟒蛇

import turtle as t

t.setup(800,600)

t.pensize(20)
t.pencolor('red')

t.pu()
t.bk(300)
pd()
t.seth(-40)

for i in range(4):
    t.circle(40,80)
    t.circle(-40,80)
    
t.seth(0)
t.fd(40)

t.circle(30,180)
t.fd(60)

t.done()
    

效果如下:

posted @ 2019-07-15 14:55  PLPLPL  阅读(226)  评论(0编辑  收藏  举报
// 目录