摘要: Server端设置3s才返回数据 单线程 import requests, random, string, datetime def download(url): print('start') response = requests.get(url) print('complete') lst = 阅读全文
posted @ 2022-03-23 13:00 ascertain 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 改造老旧教程案例: asyncio.gather import asyncio async def b(): print(5) await asyncio.sleep(2) print(55) return 5 async def p(): print(4) await asyncio.sleep( 阅读全文
posted @ 2022-03-23 11:35 ascertain 阅读(46) 评论(0) 推荐(0) 编辑