且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何修复运行时错误:无法关闭正在运行的事件循环-Python Discord Bot

更新时间:2022-05-24 22:35:22

(此处为Spyder维护者),要在我们的控制台中运行异步代码,您首先需要安装 nest_asyncio 程序包,然后在运行自述文件中描述的任何代码之前先调用它。

(Spyder maintainer here) To run async code in our consoles you first need to install the nest_asyncio package and then call it before running any of your code as described on its Readme.