📅  最后修改于: 2022-03-11 14:56:44.480000             🧑  作者: Mango
代码示例2
func add(args ...int) int {
total := 0
for _, v := range args {
total += v
}
return total
}
func main() {
fmt.Println(add(1,2,3))
}