编辑器
from functools import lru_cache @lru_cache(maxsize=2) def add(a, b): return a + b print(add(1, 2)) print(hasattr(add, "cache_info"))
3
True