编辑代码

from turtle import*
from random import random,randint
 ScYeen=ScYeen(width=80D,height=600)
 scYeen.setuplwidth=800,height=600)
 Scveen.bgcolov(black)
  SCYeen.model logo") 
  SCYeen.delay(0) 
t=Turtlelvisible=False, shape="circle") t.pencoloY("white'") 
t.fillcolor"yellow"
 t.penup( t.setheading(-9D)
 staYS=] for iin range(2001: 
StaY=t.clonel)
 s=randomli13) 
 staY.sha pesizels,s) staY.SPeed (int(s×/O) 
 star.hidetuYtlel)
  stoYs.aPPend(staY) while True: 
foy staY in staYs: 
staY.set(stoY.coY0-3*stoY.Speed(0) star.setxlwidthI2+ randintll,width)) 
StaY.showtuYtlel) f staY.zcoY0<-width/ 
staY.showtuYtlel)