aiohttp相关 - 简单的请求 ¶
作者:KK
发表日期:2020.02.11
import aiohttp, asyncio
async def main():
async with aiohttp.ClientSession() as session:
async with session.get('http://www.kkh86.com/it') as response:
print(await response.text())
loop = asyncio.get_event_loop()
loop.run_until_complete(main())