Skip to content

目录

1. Programmer tools

  • Virtual Environment
  • Debugging
  • Object introspection

2. Syntax

  • Exceptions
  • For - Else
  • Ternary Operators
  • Global & Return
  • Open function
  • *args and **kwargs
  • Context managers

3. Functional programming

  • Enumerate
  • Lambdas
  • set Data Structure
  • Map & Filter
  • Comprehensions

4. Data structures

  • Generators
  • Coroutines
  • Classes

5. Data types

  • Collections
  • Mutation
  • __slots__ Magic

6. Decorators

  • What is a decorator?
  • Function caching

7. Extras

  • One Liners
  • Targeting Python 2+3
  • Python C extensions

拓展阅读