📜  实际的 Python 迭代器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:41.299000             🧑  作者: Mango

代码示例1
>>> # Measure some strings:
... words = ['cat', 'window', 'defenestrate']
>>> for w in words:
...     print(w, len(w))
...
cat 3
window 6
defenestrate 12