页面树结构

2017-07-25 Apache Spark 2.2.0 官方文档中文版发布 : http://spark.apachecn.org/docs/cn/2.2.0/


MachineLearning 优酷地址 : http://i.youku.com/apachecn

转至元数据结尾
转至元数据起始

Scala
package scala

/**
  * Created by jiangzl on 2016/10/30.
  */

case class BookPrint(name: String, author: String)

object Test1ScalaPrint extends App{

  val name = "ApacheCN"
  val age  = 1
  val url  = "www.apache.wiki"
  val book = new BookPrint("ApacheCN", "片刻")

  println("name=" + name, "age=" + age, "url=" + url, "author=" + book.author)
  printf("name=%s, age=%d, url=%s, author=%s\n", name, age, url, book.author)
  println(s"name=$name, age=$age, url=$url, author=${book.author}")
}

结果
(name=ApacheCN,age=1,url=www.apache.wiki,author=片刻)
name=ApacheCN, age=1, url=www.apache.wiki, author=片刻
name=ApacheCN, age=1, url=www.apache.wiki, author=片刻
  • 无标签