解决方案:写一个重试装饰器,套在抽离出来的http请求中 1.重试自定义的次数装饰器 # 重试自定义的次数 def retry(times): def wrapper(func): def inner_wrapper(*args, **kwargs): i