摘要: 一、for循环 1、循环取值 1.1列表类型: 定义l=['a','b','c'],要提取列表中的值 如果采用while循环的话: print(len(l)) i=0 while i<len(l): print(l[i]) i+=1 采用for循环的话会方便很多: l=['a','b','c'] f 阅读全文
posted @ 2018-11-21 20:47 Iron-Mam 阅读(889) 评论(0) 推荐(0)