By default, the index starts from zero, but you can define it as you need. str = "abcdeU" temp = "" str.each_char.with_index(100) do |char, i|
確定! 回上一頁