最近看爬虫项目看到有人代码这样写 async def fetch(url): async with aiohttp.ClientSession() as session: async with session.get(url) as response: return await response.text() 一般会将 session 作为参数传入, 写法2: async def fetch(session, url): async with session.get(url) ...