scala 循环中continue和break

1. continue

import scala.util.control.Breaks._for(){  breakable{    if(){      break  // continue    }  } }

2.break

import scala.util.control.Breaks._breakable{  for(){    if(){      break  // break     }  }}

相关推荐