Writing a good CLAUDE.md
如何编写一个好的 CLAUDE.md 注意:本文同样适用于 AGENTS.md,这是 CLAUDE.md 的开源等效文件,适用于 OpenCode、Zed、Cursor 和 Codex 等代理和工具。 原则:LLMs(基本上)是无状态的 LLMs 是无状态函数。它们的权重在用于推理时是冻结的,因此它们不会随时间学习。模 …
Here are all published articles, sorted by date in descending order.
如何编写一个好的 CLAUDE.md 注意:本文同样适用于 AGENTS.md,这是 CLAUDE.md 的开源等效文件,适用于 OpenCode、Zed、Cursor 和 Codex 等代理和工具。 原则:LLMs(基本上)是无状态的 LLMs 是无状态函数。它们的权重在用于推理时是冻结的,因此它们不会随时间学习。模 …
Docker Context 是 Docker 2019 年引入的一个特性,用来管理多个 Docker 主机的上下文,通过切换 context 就能让本地的 docker 命令作用在不同的 Docker 主机上。 本地开发机: SHELL Collapse Copy docker context use default …
在 FastAPI 中,Request 对象和 FastAPI 应用实例 (app) 是核心概念,它们在应用状态管理和依赖注入中扮演着关键角色。 本文将介绍它们的关系、设计理念,以及如何利用 app.state 实现单例模式。
Tasks, coroutines, furtures, and awaitables Coroutines 和 tasks 都是 await 表达式,那他们的相同线程是哪个? 下面介绍 future 也被称作 awaitable,理解 futures 是理解 asyncio 内部工作的重点。 Introducing …
Introducing coroutines 创建一个协程 coroutine 而不是创建一个函数类型,使用 async def 关键字,而不是 def: PYTHON Collapse Copy async def coroutine_add_one(number: int) -> int: return …
Python asyncio 基础篇 本篇包含 asyncio 是什么以及如何使用它 concurrency 并发、parallelism 并行、threads 线程和 processes 进程 GIL (global interpreter lock) 全局解释器锁和其带来的并发跳转 非阻塞 sockets 如何只通 …
Enter keywords to search articles