我正在努力学习asyncio,任何技巧都非常感谢。我正在纠结于如何创建2个进程轮流打印消息的超级基本的东西。asyncio.sleep(2)
print(f'asyncio message worker 2 Hello!')asyncio.sleep(2)
# Running the ven_client in the Python AsyncIO
如果我把它加进去,我会得到一个错误 RuntimeWarning:协程'MotionSensors.run‘从未被等待过self.run() RuntimeWarning:启用tracemalloc来获取对象分配回溯}) print("sleeping now for 2time.sleep(2) 下面是我的主代码client.p