检查参数范围

def args_range(min_value, max_value, *args):
    """
        检查参数范围
    """
    not_null(*args)

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