编辑代码

object hello{
    def main(args:Array[String]):Unit={

        println("hello world") //换行输出
        print("hello scala")//不换行输出
        printf("hello\n") //支持c语言里的输出


    }
}