1. Sliced Slice
Slice operator: eg. L[0:3], takes the index 0,1,2 element, does not include 3. L[-1] takes the penultimate element. L[:10:2] Take the first 10 elements and take them once every two times.
You can perform slice operations on list, tuple, and Str.
2. Iteration
Iteration using for...in ... Implementation, you can use an iteration form as long as the object is iterative. Isinstance (obj, iterable)
Note: Dict are not stored sequentially, so the order of dict iterations is likely to be different.
3. List-generation
List generation is a very powerful list-generation tool. The build list can also use the Loop +append () method.
4. Generator generator
Create a generator to change the list-generated [] to (); Using the yield statement, the function returns when it encounters the yield statement, and the next time it continues from the yield.
5. Iterator iterator
Distinguish between iterable and iterator. Iterator is an object that can be invoked next and continuously return the next value. Use the ITER () function to convert an object to a iterator.