This website requires JavaScript.
Explore
Help
Register
Sign In
chenxuan
/
python
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
9af18aeb351242d37f2d58a51bae09ac4e3405bb
python
/
pythonProject
/
数据类型
/
字典
/
字典.md
T
yinjun.chen1
9af18aeb35
no message
2026-10-10 17:30:24 +08:00
519 B
Raw
Blame
History
字段的基本信息
1. 字典是Python中唯一的映射类型
2. 字典是无序的
3. 字典是可迭代对象
4. 字典的构成
键:key 值:value 映射:键映射值 键-值:键值对,又叫项
字典的操作
1. 添加、更新键值对
2、访问字典 get()按键访问值
3、浅拷贝 copy()
3. 删除键值对 del删除键值对 pop() popitem() clear()清空字典
4. 判断键是否存在字典里面 in
5. len属性
6. keys
7. values
8. items
Reference in New Issue
View Git Blame
Copy Permalink