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-09-01 09:32
posted @ 2020-04-22 15:20
posted @ 2019-07-24 15:26
posted @ 2019-07-16 16:16