例如:
async def first_route(request):
......
async def second_route(request):
......
async def functionToSchedule():
......
if __name__ == '__main__':
app = web.Application()
app.router.add_get('/fr', first_route)
app.router.add_post('/sr', second_route)
web.run_app(app)
我无法理解,我如何才能添加任务以每天在00:00
运行functionToSchedule
。
如果我使用简单的schedule
库,我不能在web.run_app(app)
之后粘贴函数调用
目前没有回答
相关问题 更多 >
编程相关推荐