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