我如何能够在散列中创建散列,嵌套散列具有标识它的键。还有我在嵌套哈希中创建的元素,我怎么能有它们的键
例如
test = Hash.new()
#create second hash with a name?? test = Hash.new("test1")??
test("test1")[1] = 1???
test("test1")[2] = 2???
#create second hash with a name/key test = Hash.new("test2")???
test("test2")[1] = 1??
test("test2")[2] = 2??
谢谢你