import time
from apscheduler.schedulers.blocking import BlockingScheduler
def my_job(i):
print (i)
sched = BlockingScheduler()
sched.add_job(my_job, 'interval', seconds=5, args=['小黑无敌'])
sched.start()
小黑无敌
小黑无敌
import time
from apscheduler.schedulers.blocking import BlockingScheduler
def my_job(i):
print (i)
sched = BlockingScheduler()
sched.add_job(my_job, 'interval', seconds=5, args=['小黑无敌'])
sched.start()
小黑无敌
小黑无敌