結果 : how to handle eof error in python