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