使用 Ruby 我需要将其转换为...
{"30"=>["Morgan", ["lib1", "lib2"]],
"31"=>["Morgan", ["lib9", "lib2", "lib3"]],
"32"=>["Gary", ["lib1", "lib2"]],
"33"=>["Morgan", ["lib1"]],
"34"=>["Morgan", []],
"35"=>["Morgan", []],
"36"=>["Morgan", ["lib3", "lib2"]],
"37"=>["jim", ["lib1"]]}
进入这个...
{"Morgan"=>[30,31,33,34,35,36],
"Gary"=>[32], []=>[34,35],
"jim"=>[37]}
有任何想法吗?