摘要:
1.迭代器:只能往后取值,不能后退 查看一个用.next(2.7),__next__(3.0) names=['lgs','mike','rain'] names=iter(['lgs','mike','rain']) print (names.next()) print(names.__next_ 阅读全文
摘要:
1.迭代器:只能往后取值,不能后退 查看一个用.next(2.7),__next__(3.0) names=['lgs','mike','rain'] names=iter(['lgs','mike','rain']) print (names.next()) print(names.__next_ 阅读全文
|