对于ruby,有时会有一个柜台,还是要做以下事情
- count = 0
- 4.times do
- puts "this is the count #{count}"
- count = count+1
解决方法
是的,时间产生一个柜台:
- 4.times do |count|
- puts "this is the count #{count}"
- end