摘要: ``` from functools import wraps def cache(func): cache = {} @wraps(func) def wrap( args): if args not in cache: cache[args] = func( args) return cache 阅读全文
posted @ 2019-02-11 22:21 Rocin 阅读(2040) 评论(0) 推荐(0) 编辑