Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: 首先区分可迭代对象(Iterable)、迭代器(Iterator) 可迭代对象:包含__iter__方法的对象为可迭代对象,如List、Tuple、Dictionary 迭代器:包含__iter__、__next__方法 可迭代对象属于半成品 --> 而迭代器属于直接食用产品,生成器属于特殊的迭代器 阅读全文
posted @ 2022-01-01 20:40 365/24/60 阅读(224) 评论(0) 推荐(0) 编辑