Chy's BLOG
latest
0. Zen of Python
1. Breaking out of nested loops
2. Flatten Nested List
3. list,tuple,set类型转换
4. 创建字典方式 & 默认多层嵌套字典
5. 进程池vs线程池
6. logging模块
7. 动态导入所有子类
8. any/all vs or/and
9. itertools模块
10. contextlib模块
11. functools
12. next & iter
12. trick
Chy's BLOG
Docs
»
Welcome to Chy’s BLOG’s documentation!
Edit on GitHub
Welcome to Chy’s BLOG’s documentation!
¶
0. Zen of Python
1. Breaking out of nested loops
2. Flatten Nested List
3. list,tuple,set类型转换
4. 创建字典方式 & 默认多层嵌套字典
5. 进程池vs线程池
5.1 进程池
5.2 线程池
6. logging模块
7. 动态导入所有子类
8. any/all vs or/and
9. itertools模块
chain
groupby
accumulate
repeat
product
permutations
combinations
combinations_with_replacement
10. contextlib模块
suppress
contextmanager
11. functools
partial
total_ordering
12. next & iter
iter
iter(object, sentinel)
next
12. trick
构造嵌套字典