你的解决方案是使用 的 传播运营商 强> * :
*
fun string(@StringRes stringRes: Int, vararg args: String): String = getString(stringRes, *args)
可变数量的参数(Varargs)