結果 : how to solve matrix in python