会话外的aiohttp读取响应被冻结

时间:2020-09-13 09:43:01

标签: python aiohttp

为什么在课外无法阅读回复? 它只是冻结。我还没有在文档中看到它的告诫。

import asyncio
import aiohttp


async def example():
    for _ in range(100):
        async with aiohttp.ClientSession() as session:
            response = await session.get('https://google.com')
        await response.text()


asyncio.run(example())

0 个答案:

没有答案
相关问题