結果 : explain file reading and writing process in python with example