第五天

集中数据类型的补充说明

1.组合数据类型的分类:
a.序列类型:字符串(str),元祖(tuple),列表(list)

b.集合类型:集合(set)

c.映射类型:字典(dict)

2.重点细说:
a.序列类型:

  -通用方法:查(索引、切片)、重复(x*n)、in、not in、index()、count()len() min() max() +(拼接)

  -重点掌握-列表:查 删除(del pop remove clear)增(extend-列表 append-末尾 insert-插入 ) 反转(reverse)复制-copy

b.集合:

  -去重

c.字典:

  -重要方法:查(keys values items)删除(clear pop del )随机取(popitem) in get(存在则返回相应值,不存在返回默认值)

 

posted on 2018-10-25 21:11  RiceAChen  阅读(62)  评论(0)    收藏  举报

导航