ruby loop each with index. Copy. xxxxxxxxxx. 1. X.each_with_index do |item, index|. 2. puts "current_index: #{index}". 3. end. ruby.
確定! 回上一頁