#範例2-18:sympy的轉置矩陣 from sympy import * A = Matrix([ [2,3], [1,4], [5,6] ]) print(A.T)