結果 : how to calculate matrix in python