且构网

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

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

更新时间:2022-05-24 22:34:52

(这里是 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.