scala代码块 截取以某个字符开头,以某个字符结尾的字符串 def main(args: Array[String]): Unit = { val s = "{{a61,a2,a3},{b1,b2,b3},{c1m,.,kkl,c2,c3}}" val reg = Pattern.compile("\\{(\\w+?),") val matcher = reg.matcher(s) while (matcher.find()) { println(matcher.
The Primes IOI'94 In the square below, each row, each column and the two diagonals can be read as a five digit prime number. The rows are read from left to right. The columns are read from top to bottom. Both diagonals are read from left to right. +-