2018年7月15日
摘要: Vice chancellor, faculty members and dear students, It is my great pleasure and privilege to visit Cambridge at the invitation of vice-chancellor and 阅读全文
posted @ 2018-07-15 22:52 一杯明月 阅读(296) 评论(0) 推荐(0)
摘要: 迭代器: 可迭代对象之前加一个iter关键词就变成了迭代器。迭代器只有一个__next__方法,没有其他方法了。 >>> a = iter([1,2,3,4,5]) >>> a <list_iterator object at 0x101402630> >>> a.__next__() 1 >>> 阅读全文
posted @ 2018-07-15 21:58 一杯明月 阅读(165) 评论(0) 推荐(0)