鲁班七号—福禄兄弟

3+

from turtle import *
cs=['red','yellow','green','blue','purple','pink','cyan','orange','magenta','grey']
Abby=Screen()
Emy=Turtle(visible=False)
Emy.penup()
Emy.setheading(90)
while 1==1:
    for s in range(100):
       c=cs[s%10]
       Emy.pencolor(c)
       Abby.bgcolor(c)
       Emy.write('⊙⊙⊙',align='center',font=('黑体',s,'normal'))
       Emy.bk(0.1)
    for s in range(100):
       c=cs[s%10]
       Emy.pencolor(c)
       Abby.bgcolor(c)
       Emy.write('⊙⊙⊙',align='center',font=('黑体',s,'normal'))
       Emy.bk(-0.2)
3+

《鲁班七号—福禄兄弟》有1个想法

发表评论