|
发表于 2022-3-22 17:09:15
|
显示全部楼层
- iter(...)
- iter(iterable) -> iterator
- iter(callable, sentinel) -> iterator
- Get an iterator from an object. In the first form, the argument must
- supply its own iterator, or be a sequence.
- In the second form, the callable is called until it returns the sentinel.
复制代码
https://docs.python.org/dev/library/functions.html#iter
还有这种操作? |
|