結果 : how to write a string into a file python