1、在项目中引入hutool的jar包
3、int[] range = ArrayUtil.range(excludedEnd);//生成一个从0开始的数字列表
5、如果我们把excludedEnd值定义为0,结果为空数组