a=Array(1..10)
b=Hash.new
c=Array.new
a.map do |e| b[:id]=e c.push b end
p c
结果却是 [{:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}, {:id=>10}]
求解