結果 : write a line to file python