結果 : write matrix to txt file python