变色的倒退乌龟

0

from turtle import Turtle,Screen

screen=Screen()

j=Turtle(shape='turtle')
j.speed(0)
j.left(90)
j.fd(200)
biao=[]

for x in range(10):
    y=j.stamp()
    biao.append(y)
    j.bk(50)

j.color('cyan')

cs=['red','orange','yellow','green','cyan','blue','purple','pink','brown','black']

i=0
while True:
     j.color(cs[i])
     i=i+1
     i=i%10
        
for i in biao:
    j.clearstamp(i)

0

发表评论