結果 : write function in file handling in python