慢慢地才知道,python中有更方便的模組——timeit,在本文結束後,筆者會把timeit ... import timeit # 待測試的函式def add(): return sum(range(111)) ...
確定! 回上一頁