第一个例子 import time from functools import wraps from typing import Callable, Any from time import sleep def retry(retries: int = 3, delay: float = 1)