Python中怎么用important time在指定的时间段内,如果发生了一个指定的函数就运行下一步。
while 1: if time.time() between 你的规定的时间段: print('执行') time.sleep(1)