結果 : how to write variable to file python