很多时候人们使用符号作为Ruby哈希中的键.
使用字符串有什么好处?
例如:
hash[:name]
与
hash['name']
ruby string symbols hashmap
hashmap ×1
ruby ×1
string ×1
symbols ×1