I got curious and timed it. numpy.sum seems much faster for numpy arrays, but much slower on lists. import numpy as np import timeit x = range( ...
確定! 回上一頁