結果 : python print and write to file simultaneously