数据处理与算法
AI 日常开发中高频使用的数据结构、算法工具和序列化模块。
| 模块 | 说明 |
|---|---|
collections | deque/Counter/defaultdict,数据处理高频 |
itertools | 高效迭代,数据管道构建 |
functools / operator | 装饰器、lru_cache、运算符工具 |
copy | 深浅拷贝,数据处理必备 |
json | 数据序列化标准 |
re | 正则表达式,文本预处理 |
decimal | 精确计算 |
pickle | Python 对象序列化(含安全注意事项) |
📄️ collections
collections实现了专用的容器数据类型,提供了 Python 通用内置容器 dict、list 的替代方案, 集合和元组 。
📄️ copy 🔨
📄️ decimal 🔨
📄️ functools、operator
reduce
📄️ itertools 🔨
📄️ json
格式转换规则