結果 : how to write a string into a text file python