变大变小得海龟

0

import turtle as t

t.bgcolor('green')
t.shape('turtle')

t.fillcolor('green')
t.pencolor('black')
t.shapesize(1,1,2)

cs=['blue','black','yellow','pink','cyan','purple','white','red']

i=0
while True:
    t.fillcolor(cs[i])
    i=i+1
    i=i%8

                
    c=1
    while c0:
        t.shapesize(c)
        c=c-1
        

    t.fd(1)
    t.right(90)
    t.fd(1)
    t.right(90)
    t.speed(0)


0

发表评论