結果 : how to handle indexerror in python