21 lines
837 B
Markdown
21 lines
837 B
Markdown
|
|
# python 201:func tools 模块(视频)
|
|||
|
|
|
|||
|
|
> 原文:<https://www.blog.pythonlibrary.org/2021/03/23/python-201-the-functools-module-video/>
|
|||
|
|
|
|||
|
|
我最近做了一个关于 Python 整洁的 **functools** 模块的演讲。该截屏涵盖了本模块的大部分内容:
|
|||
|
|
|
|||
|
|
* 贮藏
|
|||
|
|
* `total_ordering`
|
|||
|
|
* `partial`
|
|||
|
|
* `reduce`
|
|||
|
|
* `singledispatch`
|
|||
|
|
* `wraps`
|
|||
|
|
|
|||
|
|
[https://www.youtube.com/embed/gIVRaAb-XzA?feature=oembed](https://www.youtube.com/embed/gIVRaAb-XzA?feature=oembed)
|
|||
|
|
|
|||
|
|
### 相关阅读
|
|||
|
|
|
|||
|
|
* 鼠标 Vs Python - [部分功能](https://www.blog.pythonlibrary.org/2016/02/11/python-partials/)
|
|||
|
|
* 真正的 Python: Python 的 reduce(): [从函数式到 Python 式](https://realpython.com/python-reduce-function/)
|
|||
|
|
* 鼠标与 Python——使用 singledispatch 的函数重载
|
|||
|
|
* 鼠标 Vs Python-Python–如何使用 functools.wraps
|