X mod Y: 1、X<Y: X mod Y = X。计算记过永远都是等于X 2、X=Y:X mod Y = 0。重新回到数组第一个索引位置 转载于:https://www.cnblogs.com/timy/p/9023249.html