本篇教程是 Memray 官方系列教程(共 3 个练习)中的第二个练习,核心主题是:当 Python 的自动内存管理表现“出乎意料”时,如何用 memray run + memray flamegraph 快速定位问题。你将基于 holding_onto_memory.py这个示例,亲身体验“预期峰值 200MB、实际峰值 400MB”的经典 ...
使用 uv 安装 Python 各种版本,与使用 conda 安装 Python 各种版本的区别 两者都能“装多个 Python 版本”,但 目的、机制、适用场景 完全不同。 1. 定位不同 uv:Rust 写的现代 Python 工具链,顺带管理 Python 解释器 → 目标是 替代 pip + venv + pyenv + poetry ...
cordis/ —— 把 Cordis(DeepSeek Harness底层的插件框架)用 Python 复刻了一遍: 上下文、服务依赖注入、类型化事件、fiber 生命周期、可逆副作用、配置校验、YAML 装载器——一个不少。 tutorial/ + docs/tutorial/ —— 一套从零构建的教程:每一章都是可直接运行的代码 ...
A task performs an action in a pipeline. For example, a task can build an app, interact with Azure resources, install a tool, or run a test. Tasks are the building blocks for defining automation in a ...