結果 : how to write matrix python