可选参数值

函数

fun sayGoodby(message: String = "Goodby!") {
    println(message)
}

sayGoodby()
//输出 "Goodby!"

sayGoodby("see you")
//输出 "see you"