結果 : how to write data to a text file in python