2. 函数

本文为《流畅的Python》的读书笔记,强烈推荐阅读原书
Fluent Python by Luciano Ramalho (O’Reilly). Copyright 2015 Luciano Ramalho, 978-1-491-94600-8.

内容概要

  1. 函数作为一等对象
  2. 闭包
  3. 函数装饰器
  4. Python 基本概念
    • 可调用(callable)
    • 函数属性(function attribute)
    • 内省(introspection)
    • 参数注解(parameter annotation)
    • nonlocal 声明

results matching ""

    No results matching ""