![]() |
1
0
我相信 this website 应该对你很有帮助。 def add(*nums) total = 0 nums.each {|num| total += num } total end # => 6 |