Gevent 是什么,和 asyncio 一起用有什么坑
Posted on 二 07 4月 2026 in Journal • Tagged with Python, Flask, Gevent, asyncio, 并发
Posted on 二 07 4月 2026 in Journal • Tagged with Python, Flask, Gevent, asyncio, 并发
Posted on 六 28 3月 2026 in Tech • Tagged with security, supply-chain, python, secrets-management, LiteLLM
2026年3月,LiteLLM 遭遇供应链投毒,恶意包窃取用户密钥和云凭证。本文从 .pth 文件机制、漏洞根因、密钥不落盘理念到业界通用方案,聊聊 AI 时代的密钥安全。
Posted on 六 21 3月 2026 in Tech • Tagged with Playwright, automation, Python, 知乎, 小红书, browser automation
写完一篇文章,手动复制粘贴到知乎、小红书、公众号……每次都要重新排版、加标签、传图片,烦不烦?这篇文章聊聊怎么用 Playwright 把这些重复劳动自动化掉——从录制操作到封装脚本,附完整代码。
Posted on 四 19 3月 2026 in Journal • Tagged with agent, agent-loop, AI, LLM, python, tool-calling, memory, planning
以 lazy-rabbit-agent 里的 agent_loop_demo.py 为例,讲清楚 AI Agent Loop 的本质:它不是玄学,而是由规划、记忆、工具调用、观察回流、格式约束与失败恢复组成的一台小发动机。
Posted on 二 10 3月 2026 in AI • Tagged with RAG, pgvector, PostgreSQL, embedding, vector-search, Python, AI
你刚写完一个 RAG demo,跑通了 OpenAI embedding + Pinecone,兴奋了三秒——然后老板问你:"这个月 Pinecone 账单多少?"于是你开始重新审视那台已经跑了三年的 PostgreSQL。好消息:装个 pgvector 扩展,它就是你的向量数据库。这篇文章给你一套从 Docker 部署到 Python 完整代码的实操指南,跑完就能用。
Posted on 二 27 1月 2026 in Tech • Tagged with python, programming, tips, traps, best-practices
Python 入门容易精通难。这篇文章整理了 10 大经典陷阱(可变默认参数、闭包绑定、浮点精度、GIL...)和 10 小窍门(海象运算符、collections、itertools...),附带工程建议和 Checklist,帮你写出稳定、高效、可维护的 Python 代码。
Posted on 四 05 3月 2015 in Programming • Tagged with python, django