3次反转进行数据前移 在一个数组中,使用该方式进行数据的前移 前移前后不改变数据的原始顺序 -- 对list中索引[begin, theend]的数据进行交换(反转) local function reverse(list, begin, theend) local i = begin local j = theend while i < j do list[i], list