import cachetools import time @cachetools.cached({}) def find_sum(n): ... LRUCache(maxsize=5) or whatever you want @cachetools.cached(cache) def ...
確定! 回上一頁