关于爬虫异步 用Beautifulsoup在异步操作(async一系列的操作)的时的注意事项: async with aiohttp.ClientSession() as session: async with session.get(url) as resp: 要用 await resp.text()来创建bs对象: 如bs=BeautifulSoup(await resp.text(),'html.parser') 文件读写时也要用相应的aiofiles进行读写