python中的列表元组与字典

一.列表

1.列表的创建:

python中的列表元组与字典
2.列表的特性:
1)索引
2)切片
3)重复
4)拼接
5)成员操作符
6)for循环遍历
7)列表里嵌套列表

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

列表练习题:

python中的列表元组与字典

3.列表的增加:

python中的列表元组与字典

python中的列表元组与字典

4.列表的删除:
注意:慎用del会从内存中直接删除列表,执行此列表时会报错

python中的列表元组与字典

5.列表的修改:

python中的列表元组与字典

6.列表的查看:

python中的列表元组与字典

7.列表的排序:

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

列表练习题用户管理系统:

python中的列表元组与字典

列表练习题_后台管理前台会员信息:

python中的列表元组与字典

 

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

二.元组

1.元组的创建:

python中的列表元组与字典

2.元组的特性:

python中的列表元组与字典

3.元组的应用场景:

python中的列表元组与字典

python中的列表元组与字典

4.集合的定义:

python中的列表元组与字典

python中的列表元组与字典

5.集合的特性:

python中的列表元组与字典

python中的列表元组与字典

6.python中常用的内置方法:

python中的列表元组与字典

7.集合的常用方法:
1)增加
2)增加多个元素
3)删除
4)删除指定的元素
5)交集 并集 差集
6)对等差分
7)超集

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

华为笔试题:

python中的列表元组与字典

三.字典

1.字典的定义:

python中的列表元组与字典

python中的列表元组与字典

2.字典的特性“
1)成员操作符
2)for循环

python中的列表元组与字典

3.字典的增加:

python中的列表元组与字典

4.字典的删除:

python中的列表元组与字典

5.字典的修改与查看:

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典

6.字典练习:

python中的列表元组与字典

python中的列表元组与字典

python中的列表元组与字典