返回顶部

收藏

like while, you have another form you can use with untila€¡±that is, with begin/end:

更多
weight = 150

begin
  puts 'Weight: ' + weight.to_s
  weight += 5
end until weight == 200

标签:Ruby,Statement

收藏

0人收藏

支持

0

反对

0

发表评论