結果 : how to write string to file python