関連ワード:  python write to file writelines  
結果 : python write to file writelines