安排程序

import schedule
import time
def t1():
    print("1st")

schedule.every().day.at("01:47").do(t1)

while True:

    # I want something here to wait till it prints "1st" and continue to print "2nd"

print("2nd")

我要在特定时间预定的“ 1st”打印后再打印“ 2nd”。

评论