我使用的是Ruby1.8.5,数组的 each_slice() 方法不起作用。 我的代码是这样的: array.each_slice(3) do |name,age,sex| ..... end 在我的老版本ruby中有没有其他方法 ...
確定! 回上一頁