2013年8月20日
摘要: http://stackoverflow.com/questions/2776829/difference-between-python-generators-vs-iteratorsiteratoris a more general concept: any object whose class has anextmethod (__next__in Python 3) and an__iter__method that doesreturn self.Every generator is an iterator, but not vice versa. A generator is bui 阅读全文
posted @ 2013-08-20 00:05 呆头龙 阅读(256) 评论(0) 推荐(0) 编辑

点击这里给我发消息