#範例5-9:查詢與設定矩陣的資料型態:dtype import numpy as np a = np.arange(0,11) print('a=',a) #顯示矩陣a的資料型態 print('a.dtype資料型態=', a.dtype) #顯示矩陣b的資料型態 b = np.linspace(1,3) print('b =', b) print('b.dtype資料型態=', b.dtype) #設定矩陣 c 的資料型態為 int64 c = np.array([[3,2],[3,5]], dtype = np.int64) #顯示矩陣c 的資料型態 print('c.dtype資料型態=', c.dtype)