Scala语言中,关于List的定义。不正确的是?
A. val list = List(1,2,3)
B. val list = List[Int](1,2,3)
C. val list = List[String](‘a’,’b’,’c’)
D. val list = List[String]()
查看答案
关于数组val a = Array(1,2,3)下列说法错误的是?
A. val b = 2 * a // b 等于 Array(2,4,6)
B. val b = a.map(_*2) // b 等于 Array(2,4,6)
C. val b = for(elem <- a) yield 2 * elem // b 等于 Array(2,4,6)
D. val b = for(elem <- a if elem % 2 == 0) yield 2 * elem // b 等于 Array(4)
Dose the writer support the idea that "one's personality can be summed up in a word"? ( Para.2 ) What evidence in the text can you find to support your answer?
Of the two main factors (heredity and environment) that influence one's personality, which one has a greater influence?
How does family environment affect a child's personality?