結果 : which function is used to write a string to a file in python