📜  如何在python代码示例中制作分钟计数器

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

代码示例1
counter = 1
print(counter)
import time
while True:
    time.sleep(60)
    counter += 1
    print(counter)
#this adds one to the counter every 60 seconds