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