結果 : write variable value to file python