結果 : get key if exists python