結果 : write print statements to text file python