摘要: #author F #迭代器 #可直接作用于for循环的数据结构有: str,list,dict,set,tuple(元组),generate #这些可直接作用于for循环的对象统称为可迭代对象Iterable #判断一个对象是否是可迭代 可循环的 : isinstance() from collections import Iterable print(isinstance([], Ite... 阅读全文
posted @ 2017-06-19 11:32 Bird_getUpEarly 阅读(170) 评论(0) 推荐(0) 编辑