例子:func doSomething(params string...){
//do something....}my_params := [...]string {"aaa", "bbb", "ccc", ...}
1 回答
呼如林
TA贡献1798条经验 获得超3个赞
func doSomething(params ...string) {// do something...} my_params := []string{"aaa","bbb","ccc",...}doSomething(my_params...)
- 1 回答
- 0 关注
- 124 浏览
添加回答
举报
0/150
提交
取消