python 装饰器之应用示例
摘要:        
import time import hashlib import pickle import threading #装饰函数缓存应用 cache ={} def is_obsolete(entry,duration): return time.time() - entry['time']>duration def compute_key(function,args,kw): key = pick    阅读全文
        posted @ 2019-12-02 23:16 迎着风追赶 阅读(194) 评论(0) 推荐(0)
 
                    
                 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号