結果 : how to write output in text file using python