Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
可以设置可选的输入参数吗?比如我想让函数在接收图片输入和没有图片输入的时候分别实现一些功能
java的话,函数可以用可变长度参数的方式实现 如 a(String a,Image...b){//todo},b可以是0-n的Image数组
@hatmony 用的Kotlin,也可以这么做吗?
@N70_ Kotlin肯定也支持可变参数