摘要:
object test15 { //类的继承 abstract class Person(name: String,age: Int){ println("constructing Person") def walk(): Unit ={ println(name +" person walk") 阅读全文
摘要:
object test21 { class SwingType{ def wantlearned(sw:String): Unit ={ println("兔子学会"+sw) } } object swimming{ implicit def learningType(s:AnimalType)=n 阅读全文
摘要:
import org.apache.spark.sql.SparkSessionobject test24 { def main(args: Array[String]): Unit = { val ss= SparkSession.builder().master("local[2]").appName("hello").getOrCreate() val sc=ss.sparkC... 阅读全文