lru_cache缓存

cooolr 于 2021-07-06 发布
from functools import lru_cache

@lru_cache(maxsize=100)
def test(i):
    print(i, end=" ")
    return i