loop: 不限制執行次數,直到遇到break. 重複一直執行loop 裡面的內容,直到 break 才停止:. i = 20 loop do i -= 1 puts "#{i}" break if i <= 0 end ...
確定! 回上一頁