loop 是最原始的一个循环。counter = 0loop do counter += 1 print "Ruby" break if counter > 29end如果循环体内没有break的话将会一直循环下去, ...
確定! 回上一頁