标签: ruby
如何在Ruby中解释以下PHP代码?
$i = 2; $a = array(1=>'',2=>'some',3=>'..'); echo $a[$i]; # some
答案 0 :(得分:0)
i = 2 a = { 1=>'',2=>'some',3=>'..' } p a[i]