Python3 定时器

36 阅读1分钟
from apscheduler.schedulers.asyncio import AsyncIOScheduler

aps = AsyncIOScheduler()

@aps.scheduled_job(video_to_pic, 'interval', minutes=1)

def video_to_pic():

     print('oooo')