結果 : how to calculate matrices in python