結果 : check if attribute exists in object python