Fork me on GitHub
摘要: 什么是迭代? 在python语言中,迭代的意思就是通过for循环遍历一个有序/无序的集合。 迭代是通过 for x in 集合 来完成的。 前面有提到python中有哪些集合,现在我们来梳理一下: (1)有序集合:list ,tuple,str 和unicode。 (2)无序集合:set (3)无序 阅读全文
posted @ 2016-07-20 13:51 ink.liu 阅读(285) 评论(0) 推荐(0)