这是隔5秒执行一次Python

import time


def sleeptime(hour, min, sec):
    return hour * 3600 + min * 60 + sec


second = sleeptime(0, 0, 30)
while 1 == 1:
    time.sleep(second)
    print('do action')
# 这是隔5秒执行一次
from winotify import Notification

def push(title,msg,app_id,urlurl):
    title=title
    msg=msg
    app_id=app_id
    urlurl=urlurl

    #r"D:\Python\demo\wechat.png"
    toast = Notificati

 

posted @ 2023-04-10 13:57  很多无尾熊  阅读(88)  评论(0)    收藏  举报
本站已运行[ ]
正在加载今日诗词....