關於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) } 自己寫了一
相關文章
相關標籤/搜索