协程for

async def download(href_list):
tasks = []
for href in href_list:
t = asyncio.create_task(download_one(href))
tasks.append(t)
break
await asyncio.wait(tasks)
posted @ 2023-08-03 22:34  严永富  阅读(4)  评论(0)    收藏  举报