关于Go的可变参数的使用 我踩的坑

package main import ( "log" ) func main() { print("nums is %d,%d,%d,%d,%d", 1, 2, 3, 4, 5) } func print(str string, s ...interface{}) { log.Printf("[notice]"+str, s) } 自己写了一
相关文章
相关标签/搜索