day17-homework-03.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:python-Uband 作者: sy-yunyi 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号