由于之前一段时间出差,致谢动画今天才完成,程序的讲解放在下次吧,这次先把程序放上,点击阅读原文或者这个链接https://repl.it/HVya/23即可访问。实测iphone6s和6p的手机都可以正常执行~当然还要先点下continue as anonymous...
而原创还要求300字。。。恩,那只有贴程序大法了
import turtle
from random import randint
t = turtle.Turtle()
t1 = turtle.Turtle()
t.getscreen().bgcolor('light blue')
t.speed(0)
NameList=['xuyun(grandpa)','weiwei','xiangyanhong','chengye','Donald','Lighthouse','shanchahua','liutao(dad)','kai','wuzhidao','wanxiaowu','sherry_xiaoye','jinpeng','chli','heqiang','faustin','tina(mom)']
ColorList=['red','orange','yellow','green','blue','purple','pink','black','brown','white']
t1.penup()
t1.goto(-150,-50)
t1.pendown()
t1.write('for contribution to my save for college', font=("Arial", 14, "normal"))
t.penup()
t.goto(-150, 0)
t.pendown()
t.delay(700)
for i in range(0, len(NameList)):
color = randint(0, len(ColorList)-1)
# print(color)
t.color(ColorList[color])
t.write('Thank you', font=("Arial", 20, "normal"))
t.clear()
t.delay(0)
t.penup()
t.goto(25, 0)
t.pendown()
t.delay(700)
t.write(NameList[i], font=("Arial", 20, "normal"))
t.clear()
t.delay(0)
t.penup()
t.goto(-150, 0)
t.pendown()
t.delay(700)