摘要: import aiohttp import asyncio async def aaa(): async with aiohttp.ClientSession() as session: async with session.get('https://github.com') as response: if response.status ==... 阅读全文
posted @ 2018-04-14 16:51 qukaige 阅读(151) 评论(0) 推荐(0) 编辑
摘要: import asyncio async def hello(): print('Hello start!') await asyncio.sleep(2) print('Hello end!') async def hello222(): print('Hello222 start!') result = await somework() ... 阅读全文
posted @ 2018-04-14 13:19 qukaige 阅读(139) 评论(0) 推荐(0) 编辑