import numpy as np
array=[1,2,3,4,5]
array+1#沒定義成numpy.ndarray類型是不能直接操做的
array=np.array([1,2,3,4,5])
print(type(array))
array2=array+1
array2
array*array2
array[0]
array.shape#數組大小
np.array([[1,2,3],[4,5,6]])