代码
import time
def sleep_time(hour, min, sec):
return hour * 3600 + min * 60 + sec
# 时间间隔
second = sleep_time(0, 0, 2)
while True:
time.sleep(second)
print('hello world!')
版权声明:本文为wangsiji_buaa原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。