内置函数_iter

描述

iter()函数作用:获取可迭代对象的迭代器

示例代码:

s = 'hello'
print(iter(s))  # <str_iterator object at 0x7f2fe715d7d0>
原文地址:https://www.cnblogs.com/yujiemeigui/p/14611659.html