def runTurtle():
windows=turtle.Screen()
windows.bgcolor("blue")
tu=[]
i=0
hit(i)
for i in range(10):
bran=turtle.Turtle()
bran.hideturtle()
bran.color("yellow")
bran.shape("turtle")
bran.shapesize(1,1)
bran.onclick(turn)
bran.up()
bran.goto(i*30,0)
tu.append(bran)
while 1:
n=(int)(random.uniform(0, 10))
for i in range(10):
tu[i].hideturtle()
tu[n].showturtle()
time.sleep(1)
评论列表
文章目录