結果 : write variables to file python