python 測試代碼執行速度 簡單代碼

import time rpes = 10000 repsList = range(rpes) def timer(func, *args, **kargs): start = time.clock() for i in repsList: ret = func(*args, **kargs) elapsed = time.clock() - star
相關文章
相關標籤/搜索