首页  

scala 多行字符串     所属分类 scala 浏览量 602
println(
      """hello java
        | hello  scala
        |hello python
        |""".stripMargin)

    val name1 = "cat"
    val name2 = "tiger"
    val name3 = "dog"

    println(
      s"""hello $name1
         |hello  $name2
         |hello $name3
         |""".stripMargin)


hello java hello scala hello python hello cat hello tiger hello dog

上一篇     下一篇
play框架依赖注入

play 数据库访问

依赖注入 guice 实例

scala 元组和多重赋值

play json 操作

play Application Settings