結果 : how to get terminal output in python