3, indexing and slicing


1, the basic index

 The index to find a single way

 

 

2, numpy type index

 All of the index to write in a list, instead of writing multiple brackets, and the readability is also relatively strong

 

3, start: end, specify start and end, it does not include the end

 Similar slice in python

 

4、start:end:step

 

5, the selectivity index

 The above sections are based on several ways [start: end: step] slicing the continuous fragment pattern, is selectively indexed random sampling mode

 

 

 

 

Guess you like

Origin www.cnblogs.com/pengzhonglian/p/11895702.html