#範例2-1:建立矩陣的方法:Matrix 或 ndarray import numpy as np a = np.array([[1,2,3], [2,3,4], [3,4,5]]) print(a) b= np.mat([[1,2,3], [2,3,4], [3,4,5]]) print(b)