摘要: 迭代器 class Reader(object): """ 自定义异步迭代器(同时也是异步可迭代对象) """ def __init__(self): self.count = 0 def readline(self): # await asyncio.sleep(1) self.count += 阅读全文
posted @ 2023-05-31 16:30 壮九 阅读(14) 评论(0) 推荐(0)
摘要: 普通网络请求 import requests url_list = [ 'https://www3.autoimg.cn/newsdfs/g26/M02/35/A9/120x90_0_autohomecar__ChsEe12AXQ6AOOH_AAFocMs8nzU621.jpg', 'https:/ 阅读全文
posted @ 2023-05-31 16:13 壮九 阅读(27) 评论(0) 推荐(0)