def all_has(objects, key, check_value=None, opt=None):
    """objects是一个list，内个element都是dict，并且都有指定key对应的值"""
    if not objects:
        return False
    for obj in objects[:200]:
        if not isinstance(obj, dict):
            return False
        if check_value is None and obj.get(key) is None:
            return False
        elif check_value is not None:
            value_got = obj.get(key)
            if isinstance(value_got, (tuple, list)):
                value_got = len(value_got)
            if (opt is None or opt == '==') and value_got != check_value:
                return False
            elif opt == '>=' and value_got < check_value:
                return False
            elif opt == '<=' and value_got > check_value:
                return False
            elif opt == '>' and value_got <= check_value:
                return False
            elif opt == '<' and value_got >= check_value:
                return False
    return True
