快速迭代hash表

2014-12-09 0 429
快速迭代hash表
h = {'a'=>'aaa',2=>'bbb'}
h.each do |a,b|  
	puts a.to_s+"--"+b.to_s
end

遇见资源网 ruby 快速迭代hash表 http://www.ox520.com/16180.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务