✨ Python 技巧、面试题、代码片段
- 1. Python 函数参数传递
- 2. Python 元类(metaclass)
- 3. @staticmethod和@classmethod
- 4. 类变量和实例变量
- 5. Python 自省
- 6. 列表、字典、集合推导式
- 7. Python 单下划线和双下划线
- 8. Python "__str__" vs. "__repr__"
- 9. 字符串格式化 & 拼接
- 10. 可迭代对象、迭代器和生成器
- 11. *args and **kwargs
- 12 面向切面编程(AOP)和装饰器
- 13 闭包 (closure)
- 14 函数是一等公民 (First-Class Citizens)
- 15 鸭子类型 (Duck typing)
- 16 Python 中重载
- 17 新式类和旧式类
- 18 __new__和__init__区别
- 19 设计模式
- 19.1 单例模式(Singleton Pattern)
- 19.2 工厂模式(Factory Pattern)
- 19.3 观察者模式(Observer Pattern)
- 19.4 责任链模式(Chain of Responsibility Pattern)
- 19.5 策略模式(Strategy Pattern)
- 19.6 命令模式(Command Pattern)
- 19.7 适配器模式(Adapter Pattern)
- 19.8 模板方法模式(Template Method Pattern)
- 19.9 组合模式(Composite Pattern)
- 19.10 外观模式(Facade Pattern)
- 19.11 原型模式(Prototype Pattern)
- 19.12 状态模式 (State Pattern)
- 19.x 更多设计模式
- 20 进程 (Process)、线程 (Thread)、协程 (Coroutine)
- 21 asyncio 异步 I/O
- 22 lambda 函数
- 23 函数式编程
- 24 Python里的拷贝
- 25 垃圾回收机制
- 26 python3 中 is, is not ,==, != 的区别
- 27 read,readline和readlines
- 28 数据结构