2018.10.26-day5 python整理总结

今日内容:
1.字典
2.id is ==
3.小数据池
4.集合
昨日回顾:
1.列表:可变的
增:append//insert//extend//+//*
删:remove//pop//clear//del
改:lst[0] = 'alex'
查:
for循环
下标
切片
其他:count//index//sort//reverse
嵌套:lst = [1, 2, 3, 4, 5, 6, [5678, 23, 698], 4567547]
2.元组:一个不可变的列表
count//index
3.range 范围
range(起始位置, 终止位置, 步长)
顾头不顾尾
4.字典
键值对:{'key': 'v'}
键: 不可变数据类型
值: 随意

原文地址:https://www.cnblogs.com/studybrother/p/9857088.html