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