在Ruby中使用ary [start,length]-> object进行数组元素分配