摘要: 1.何为迭代: 对于给定list或者tuple,通过for循环来遍历这个list或tuple,这种遍历我们称之为迭代(Iteration). 2.python中利用for...in语句来完成迭代语句: (1)迭代list: 使用for...in语句迭代list时,是通过下标完成的,迭代tuple类似 阅读全文
posted @ 2018-02-06 20:50 woft王 阅读(204) 评论(0) 推荐(0)