#!/usr/bin/ruby # file : iterator-each.rb (1...5).each do |i| puts i end. 执行上面代码,得到以下结果- F:\worksp\ruby>ruby iterator-each.rb 1 2 3 4 ...
確定! 回上一頁