标签:color 默认 col 一个 scala list until util 操作
// Range:to:默认步进为1 val to1 = 1 to 10 println(to1) // 定义一个不进为2的Range val to2 = 1 to 10 by 2 println(to2) println(to2.toList) // Range:until val until1 = 1 until 10 println(until1) val until2 = 1 until 10 by 2 println(until2)
标签:color 默认 col 一个 scala list until util 操作
原文地址:http://www.cnblogs.com/xubiao/p/7994391.html