結果 : python write lines to file in loop