其他分享
首页 > 其他分享> > Event loop is closed

Event loop is closed

作者:互联网

在 Windows 上似乎是 EventLoopPolicy 的问题,使用此代码段来解决它

asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

asyncio.run(main())




标签:set,run,代码段,closed,policy,Event,loop,asyncio
来源: https://www.cnblogs.com/jiyu-hlzy/p/15522502.html