我有以下代码:
def operation hash
puts hash[:three][:three][:three]
end
operation :one => 'item', :two => [1,2,3], :three => [
:one => 1,
:two => 2,
:three => [
:one => 1,
:two => 2,
:three => [
:test1,
:test2
]
]
]
我想访问项目 hash[:three][:three][:three] 以输出 [test1, test2]。
为什么它不起作用?