結果 : write matrix to text file python