我想为我的一个项目做一个装潢师,每隔x秒就会启动一次特定的电视任务。我在telethon组中问过,有人给了我一个小小的装饰器,但这里的问题是,我需要使用run_until_complete启动循环,并且在启动客户机时已经使用了它。这是我的代码: def scheduler(fcn):
while5) # Do som
在尝试运行文档中给出的asyncio hello world代码示例时: print("Hello World!loop = asyncio.get_event_loop()
# Blocking call which returns when the hello_world() coroutine is done