对于红宝石,我可以做一个计数器,或者我必须做以下事情
count = 0
4.times do
puts "this is the count #{count}"
count = count+1
Run Code Online (Sandbox Code Playgroud)
sep*_*p2k 30
是的,times
产生一个柜台:
4.times do |count|
puts "this is the count #{count}"
end
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
24899 次 |
最近记录: |