会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhangfangfang9620
博客园
首页
新随笔
联系
订阅
管理
2019年1月10日
list循环、多维数组、切片、字典基本操作
摘要: 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)
2018年12月22日
python-list基本操作
摘要: 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)
公告