所有的程序员都是编剧,所有的计算机都是烂演员。   
返回顶部
摘要: 什么是迭代器? 答:重复,下一次的输出是基于上一次的结果 列子: i=[1,2,3,4] count=0 while count<len(i): print(i[count]) count+=1 索引 i={'a':1,'b':2,'c':3} for k in i: print(k) 通常以前都会 阅读全文
posted @ 2018-07-19 10:24 steven丶syw 阅读(121) 评论(0) 推荐(0) 编辑