这是隔5秒执行一次Python

发布时间 2023-04-10 14:03:50作者: 很多无尾熊
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