import time
import turtle
import pygame
print("> 如果你不想再倒计时了,按Ctrl + C")
a = int(input("> 小时:"))
b = int(input("> 分钟:"))
c = int(input("> 秒:"))
d = a * 60 * 60
e = b * 60
f = d + e + c
q = 0
t = turtle.Pen()
turtle.bgcolor('yellow')
t.pencolor('black')
t.pensize(100)
for i in range(f, 0, -1):
t.write(f"{a}:{b}:{c}")
time.sleep(1)
t.pencolor('yellow')
t.write(f'{a}:{b}:{c}')
t.pencolor('black')
if c == 0:
if b != 0:
b -= 1
c += 60
q = 1
if b == 0:
if a != 0:
a -= 1
b += 59
if q != 1:
c += 60
c -= 1
t.pencolor('red')
t.write('||||||||||||||||||')
t.write('151515151515151515')
t.write('999999999999999999')
turtle.bgcolor('red')
t.pencolor('yellow')
t.write('时间到了!!!')
for i in range(20):
print("时间到了!!!")
time.sleep(1)
minuterie de tortue
Je suppose que tu aimes
Origine blog.csdn.net/qq_45172832/article/details/105346338
conseillé
Classement