源代码:
#!/usr/bin/ruby ary = [1,2,3,4,5] ary.each do |i| puts i end
运行结果:
#!/usr/bin/ruby ary = [1,2,3,4,5] ary.each do |i| puts i end