使用异步方式调用接口

from apscheduler.schedulers.asyncio import AsyncIOScheduler
aps = AsyncIOScheduler()
@aps.scheduled_job(video_to_pic, 'interval', minutes=1)
def video_to_pic():
 		print('oooo')

猜你喜欢

转载自blog.csdn.net/weixin_43883907/article/details/89157334