摘要: 1、list循环 1)for循环 stus = ['域内','ysng','xln','yg','gx','jy'] for i in range(len(stus)): print(i) 2)while循环 stus = ['域内','ysng','xln','yg','gx','jy'] cou 阅读全文
posted @ 2019-01-10 10:48 抽风的小强 阅读(1137) 评论(0) 推荐(0)
摘要: list基本操作 1) list列表,数组 stus = ['yangguo','小龙女','哈根达斯','琪琪']#下标,索引,角标:0,1,2,3 查找名字叫“小龙女”的元素在第几位,下标从0开始计算 print(stus[1]) 空list stus=list[] 2) 添加 append在l 阅读全文
posted @ 2018-12-22 16:59 抽风的小强 阅读(275) 评论(0) 推荐(0)