Convert a string to a hash : split « String « Ruby. ... word_count_hash = Hash.new 0 p word_count_hash text.split(/\W+/).each { |word| ...
確定! 回上一頁