結果 : how to write a file in for loop python