摘要: append用来将元素添加到切片末尾并返回结果。看代码:package mainimport "fmt"func main() {x := []int {1,2,3}y := []int {4,5,6}//注意下面这两个区别fmt.Println(append(x,4,5,6))fmt.Printl... 阅读全文
posted @ 2015-03-13 09:04 klain 阅读(47615) 评论(0) 推荐(2) 编辑