fun main(args: Array<String>) {
val resullt = createDiary("天安门")
println(resullt)
}
fun createDiary(place:String):String{
//result="今天天气晴朗,万里无云,我们去"+place+"游玩,首先映入眼帘的是"+place+""+place.length+"个镏金大字"
val result="天气晴朗,万里无云,我们去${place}游玩,首先映入眼帘的是${place}${place.length}个镏金大字"
return result
}
网友评论