結果 : how to avoid keyerror in python