为了测试两者的速度区别,我分别使用了 shuffle 和 permutation 对不同长度的array 进行随机打乱并计时。 关键代码如下: n = 10 ** np.arange(1 ...
確定! 回上一頁