📜  如何使用海龟图形在 python 中倒计时 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.690000             🧑  作者: Mango

代码示例1
#import this
from turtle import *
from time import *
#create the turtle
count = Turtle()
count.speed(0)
count.penup()
count.goto(0,260)
count3=0

#this is the loop
for count2 in range(3):#replace the 3 with the number you want to count from
    count3 = 3 - count2
    count.clear()
    count.write(count3, align="center", font=("arial", 24, "normal"))
    sleep(1)