摘要: python实现定时任务的方法有 1、死循环+sleep。(不推荐,Linux中会被未知原因杀死,可能是sleep抛出异常了)2、threading的Timer3、使用sched模块4、使用定时框架APScheduler(强烈推荐,需要pip安装,参考:https://www.cnblogs.com 阅读全文
posted @ 2020-07-02 16:18 安迪9468 阅读(811) 评论(0) 推荐(0) 编辑