結果 : python print terminal output to file