返回顶部

收藏

use while and until in a single line setting, as with if and unless:

更多
i = 1
i = i * 2 until i > 1000
puts i

标签:Ruby,Statement

收藏

0人收藏

支持

0

反对

0

发表评论