切片的容量问题

MarkGaoGit · 2017-10-30 09:48:53 · 1635 次点击
更多评论

谁能详细的帮我解释一下呀 找了一下午答案弄不明白

#1
polaris
社区,需要你我一同完善!

http://docs.studygolang.com/ref/spec#Slice_expressions 看这里的说明

> a[low : high : max]
> it controls the resulting slice's capacity by setting it to max - low

#2