結果 : how to solve matrix equations in python