William James
7/20/2007 8:24:00 PM
On Jun 12, 1:29 am, gz zz <gpyg...@126.com> wrote:
> a=Hash.new{|h,k|
> h[k]={}
>
> }
>
> p a[1]=1
>
> a[2][1]=2
> #a[2][2][3]=4
a = {}
==>{}
a[1] = 1
==>1
a[ [2,1] ] = 2
==>2
a[ [2,2,3] ] = 4
==>4
p a
{[2, 2, 3]=>4, [2, 1]=>2, 1=>1}
==>nil