package main import "fmt" func main(){ fmt.Println("Hello, World!") aaa := []string{"111", "222", "333"} bbb := []string{"aaa", "bbb", "ccc"} fmt.Println(append(aaa, bbb ...)) }
运行结果:
Hello, World! [111 222 333 aaa bbb ccc]