求解cap()方法

Chen21st · · 723 次点击
``` q2 := months[3:6] // cap = 12-3 len = 6-3 q3 := q2[1:2] // cap = 9-1 len = 2 - 1 ```
#1