Python列表不一樣遍歷方式效率對比

import time lst = [i for i in range(10000)] def count(function, times): start = time.time() for _ in range(times): function() print(time.time()-start) def indexFind(): for i
相關文章
相關標籤/搜索