結果 : write lines to a text file python