結果 : how to solve matrix problems in python