临时变量:|x|
array=[1,23,12,41,1]array.each do |data| puts data data << data+1end for x in 0..array.length-1 do puts array[x]end "abc".each_byte do |c| print "<%c>",cend
本文共 219 字,大约阅读时间需要 1 分钟。
临时变量:|x|
array=[1,23,12,41,1]array.each do |data| puts data data << data+1end for x in 0..array.length-1 do puts array[x]end "abc".each_byte do |c| print "<%c>",cend
转载于:https://www.cnblogs.com/fpcbk/p/10824022.html