a = np.array([0, 0.5, 1.0, 1.5, 2.0]) #float ndarray -1-1. b ... 而在第二個例子裏面就可以看到numpy的向量化數學運算,因為如果是在一般的list ...
確定! 回上一頁