python 有一个built-in函数iter()用来从序列对象,如String, list,tuple中生成迭代器。 __iter__()方法是python的魔法方法,如果对象是iterator那么for循环 ...
確定! 回上一頁