Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-cookbook #17

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Chapter1/Chapter1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
##第1章 数据结构和算法

##问题
- 1.1 将序列分解为单独的变量
- 1.2 从任意长度的可迭代对象中分解元素
- 1.3 保存最后N个元素
- 1.4 找到最大或最小的N个元素
- 1.5 实现优先级队列
- 1.6 在字典中将键映射到多个值上
- 1.7 让字典保持有序
- 1.8 与字典有关的计算问题
- 1.9 在两个字典中寻找相同点
- 1.10 从序列中移除重复项并保持元素间顺序不变
- 1.11 对切片命名
- 1.12 找出序列中出现次数最多的元素
- 1.13 通过公共键对字典列表排序
- 1.14 对不原生支持比较操作的对象排序
- 1.15 根据字段将记录分组
- 1.16 筛选序列中的元素
- 1.17 从字典中提权子集
- 1.18 将名称映射到序列的元素中
- 1.19 同时对数据做转换和换算
- 1.20 将对个映射合并为单个映射

Loading