摘要: from functools import wrapsdef memo(func): cache={} @wraps(func) def wrap(self,*args): if args not in cache: cache[args]=fu... 阅读全文
posted @ 2015-06-10 16:23 程序员阿力 阅读(234) 评论(0) 推荐(0) 编辑