快速迭代hash表

h = {'a'=>'aaa',2=>'bbb'}
h.each do |a,b|  
	puts a.to_s+"--"+b.to_s
end

编程技巧