結果 : how to write a variable to a text file python