Python基础 · 免费预览
字典与集合
把成对的数据存进字典;按键查找值,用字典计数,并处理由唯一值组成的集合。
1. Overview
Overview
2. Looking Things Up by Name
Looking Things Up by Name
3. Adding and Changing Entries
Adding and Changing Entries
4. Looping Over a Dictionary
Looping Over a Dictionary
5. Counting Things
Counting Things
6. Sets of Unique Values
Sets of Unique Values
7. Counting Vowels
Counting Vowels
8. Shared Symptoms
Shared Symptoms