結果 : python redirect stdout from function