結果 : python write formatted string to file