Pythoniterable `iter()`() iterable
iterableiterable
iterable
> An object capable of returning its members one at a time. Examples of iterables include all sequence types (such as list, str, and tuple) and some non-sequence types like dict, file objects, and objects of any classes you define with an `__iter__()` method or with a `__getitem__()` method that implements Sequence semantics.
* `__iter__()`. (iterator .)
* `__getitem__()`Sequence .
iterable
`ITER`1`__iter__()`. (itertor .)iterable`iter()`
* * *
iterablefor-in
# `ITER`
x = ITER(2)
for i in x:
print(i)
a, b, c = x
print(a, b, c)