結果 : how to solve matrices in python