-
SliceDynamicPL/Python 2019. 10. 28. 15:54
1. Overview
Slicing relies on indexing. It only works with sequence types.
2. Description
2.1 Capability on sequence types
2.2 Sequence type
2.3 Slice start and stop bounds
2.4 Step value
2.5 Range equivalence
2.6 Transformation [i:j]
2.7 Transformations [i:j:k], k > 0
2.8 Transformations [i:j:k], k < 0
2.9 indices method
2.10 Summary
3. Example
3.1 Example 1
3.2 Example 2
4. References
'DynamicPL > Python' 카테고리의 다른 글
Closure (0) 2019.11.07 First-Class Object and High-Order function (0) 2019.11.02 Sequence (0) 2019.10.26 List, Dictionary, Set Comprehensions, and Difference between List Comprehensions and Generator expressions (0) 2019.10.22 iterator, iterable, iteration, iterator protocol, generator functions, generator expressions, and lazy evaluation (0) 2019.10.22