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