asyncio 简单使用
摘要:import asyncio async def func(i, s): print(f'第{i}个协程启动了') await asyncio.sleep(s) async def main(): task = [] for i in range(100): task.append(func(i,
阅读全文
posted @ 2021-07-17 13:46
posted @ 2021-07-17 13:46
posted @ 2020-08-20 15:59
posted @ 2020-07-16 17:19
posted @ 2019-07-24 16:55
posted @ 2019-07-24 16:47
posted @ 2019-07-24 16:33