# 异常捕获装饰器(亦可用于类方法) def try_except_log(f=None, max_retries: int = 5, delay: (int, float) = 1, step: (int, float) = 0, exceptions: (BaseException, tuple, list) = BaseException, sleep=time.sleep, process=None, validate=None, callback=None, default=None)…