結果 : write matrices in python