首页 > 其他 > 详细

定时任务

时间:2021-08-30 03:07:46      阅读:4      评论:0      收藏:0      [点我收藏+]
import schedule
import time
def Schedule():

print(1)


def main():
schedule.every().seconds.do(Schedule)

while True:
schedule.run_pending()

time.sleep(10)

main()

定时任务

原文:https://www.cnblogs.com/lvyinhaoqing/p/15200998.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!