关于Python切片:双冒号的使用
#Python sequence slice addresses can be written as a[start:end:step] and any of start, stop or end can be dropped.
#所以出现双冒号是省略了“end”的结果,默认为最后
>>> a = numpy.arange(1,10)
>>> a
array([1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> a[2::2]#从下标2开始,一直到结尾,以步长2取值
array([3, 5, 7, 9])
参考:https://stackoverflow.com/questions/3453085/what-is-double-colon-in-python-when-subscripting-sequences