摘要: 可迭代对象(Iterable):生成迭代器 __ter__(), __getitem__() 迭代器(Iterator):可以被逐个取值的 __next__() next() 迭代(iteratioin):从某一个地方取出一个元素的过程,比如循环来遍历某个东西时,这个过程就叫做迭代 生成器(Gene 阅读全文
posted @ 2020-01-09 15:01 cooyao 阅读(81) 评论(0) 推荐(0)
摘要: https://docs.python.org/zh-cn/3/library/index.html 阅读全文
posted @ 2019-12-07 17:01 cooyao 阅读(141) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/jiangchunsheng/p/9275881.html 阅读全文
posted @ 2019-12-06 16:41 cooyao 阅读(142) 评论(0) 推荐(0)