📅  最后修改于: 2022-03-11 15:04:45.795000             🧑  作者: Mango
# iterating_over_hashes.rb
person = {name: 'bob', height: '6 ft', weight: '160 lbs', hair: 'brown'}
person.each do |key, value|
puts "Bob's #{key} is #{value}"
end