結果 : check if list of objects contains value python