摘要:
#encoding=utf8__author__ = 'Administrator'#如果是直接运行文件的话if __name__=="__main__": print("main")#怎么做性能测试import timedef timer(reptimes,func,*pargs,**kargs): start=time.clock() for i in range(reptimes): func(*pargs,**kargs) return time.clock()-startdef test(test): [i for i in r 阅读全文