結果 : how to write a string to a file in python