擅长:python、mysql、java
<p>在使用Python3.7.3的Windows上,不是直接在线程中创建事件循环</p>
<p>我必须:</p>
<pre><code>asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
</code></pre>
<p>否则,问题将继续存在。</p>