python报错内容:
The list of positional arguments is longer than the target callable can handle (allowed: 0, given in args: 1)
错误原因:
任务函数需要接收一个参数
添加任务:
scheduler.add_job(func, 'cron', args=['cron'], id='sdf', minute='*/10')
错误的接收函数:
def func():
# 开始
正确的接收函数:
def func(trigger):
# 开始