检查参数长度

def args_length(min_len, max_len, *args):
    """
        检查参数长度
    """
    not_null(*args)

    if not all(map(lambda v: min_len <= len(v) <= max_len, args)):
        raise ValueError("Argument length must be between {0} and {1}!".format(min_len, max_len))