python 定時器,天天凌晨3點執行方法

''' Created on 2018-4-20 例子:天天凌晨3點執行func方法 ''' import datetime import threading def func(): print("haha") #若是須要循環調用,就要添加如下方法 timer = threading.Timer(86400, func) timer.start() # 獲取如今
相關文章
相關標籤/搜索