摘要: object test15 { //类的继承 abstract class Person(name: String,age: Int){ println("constructing Person") def walk(): Unit ={ println(name +" person walk") 阅读全文
posted @ 2019-05-27 20:12 等木鱼的猫 阅读(135) 评论(0) 推荐(0) 编辑
摘要: object test21 { class SwingType{ def wantlearned(sw:String): Unit ={ println("兔子学会"+sw) } } object swimming{ implicit def learningType(s:AnimalType)=n 阅读全文
posted @ 2019-05-27 20:07 等木鱼的猫 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-05-27 20:06 等木鱼的猫 阅读(448) 评论(0) 推荐(0) 编辑