这是因为在while循环中,条件写在代码的末尾。 语法: loop do #code to be executed break if booleanExpression end. 代码示例: #!/usr/bin/ruby ...
確定! 回上一頁