One advantage of using numpy arrays that many computations can be performed on all array elements at once: print(2*a) # multiplication by a number. [2 4 6].
確定! 回上一頁