保姆级Ruby入门教程: http://ruby.zhihuichina.net.cn 方法1 #=> eval [1,2,3,4].join('+') 方法2 #=> [1, 2, 3].inject(0, :+) rails 方法 #=> [1,2,3,4,5,6,7,8,9].sum