剩余部分:
球8.goto(random.randint(-500,500),400)
#设立球的位和形状
s=0
turtle.onkeypress(left,"Left")
turtle.onkeypress(right,"Right")
球1.setheading(270)
球2.setheading(270)
球3.setheading(270)
球4.setheading(270)
球5.setheading(270)
球6.setheading(270)
球7.setheading(270)
球8.setheading(270)
turtle.listen()
while True:
球1.forward(10)
球2.forward(10)
球3.forward(10)
球4.forward(10)
球5.forward(10)
球6.forward(10)
球7.forward(10)
球8.forward(10)
#让球下落