print(array.dtype) # 元素類型 ... c = np.array([1,2,3]) # 一維數據 print(c) ... for i in arr1.flat: # 迭代所有元素 print(i)
確定! 回上一頁