会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
十三山入秋
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
2025年6月12日
【pprint】
摘要: # pprint.pp(resp.messages) [{ 'content': 'Hi there! 👋 How can I assist you today? Let me know what you ' "need, and I'll do my best to help! 😊", 're
阅读全文
posted @ 2025-06-12 10:32 十三山入秋
阅读(8)
评论(0)
推荐(0)
2025年6月11日
【python: 解包2】
摘要: 你的理解很对,下面详细解答你的两个问题: 1. Python 的 * 解包适用哪些类型? *user 可以用于元组、列表,以及任何可迭代对象(如 set、range、字符串等)。 只要这个对象可以被遍历,且元素个数和函数参数个数一致,都可以用 * 解包。 示例: def foo(a, b, c):
阅读全文
posted @ 2025-06-11 10:18 十三山入秋
阅读(19)
评论(0)
推荐(0)
【python: 解包】
摘要: for user in initial_users: add_user(*user) 这种写法其实是 Python 的“参数解包”语法。 下面详细解释一下: 1. 语法说明 假设 initial_users 是一个列表,里面每个元素都是一个元组,例如: initial_users = [ ("张三"
阅读全文
posted @ 2025-06-11 10:06 十三山入秋
阅读(26)
评论(0)
推荐(0)
2025年6月9日
【function call & tools】
摘要: # function_call 是大模型返回的结构化格式(如 OpenAI 的 function calling / tool calling) { "function_call": { "name": "get_weather", "arguments": "{ \"location\": \"S
阅读全文
posted @ 2025-06-09 19:38 十三山入秋
阅读(63)
评论(1)
推荐(0)
【getattr】
摘要: result = getattr(self.tools, action)(**args) # agent.py class Memory: def __init__(self): self.log = [] def save(self, message): self.log.append(messa
阅读全文
posted @ 2025-06-09 19:33 十三山入秋
阅读(21)
评论(0)
推荐(0)
2025年6月8日
【pip git 】
摘要: pip install git+...:拉下来 + 安装成 Python 包 操作方式 是否下载代码 是否自动安装 是否被 pip 管理 用途 git clone ✅ 是 ❌ 否 ❌ 否 本地开发、调试 pip install git+... ✅ 是(临时) ✅ 是 ✅ 是 安装为依赖项 pip i
阅读全文
posted @ 2025-06-08 22:57 十三山入秋
阅读(24)
评论(0)
推荐(0)
【目录生成】
摘要: # 移动硬盘目录结构推荐(程序员 + 生活文件) ## 1. 工作相关目录(Work) - **Projects/** 存放所有开发项目代码,按语言或项目名称分类。 例如:`Python/`、`JavaScript/`、`Go/` 等。 - **Libraries/** 第三方库、框架源码或本地依赖
阅读全文
posted @ 2025-06-08 17:29 十三山入秋
阅读(48)
评论(0)
推荐(0)
【MAC:硬盘扩容】
摘要: ## 1. 确认电脑是否有雷电接口 苹果电脑从2015年发布的具有雷电3、雷电4接口的电脑; Windows电脑2016年后有雷电3和4接口的电脑; 雷电接口旁有雷电标志; ## 2. 阿卡西斯 推荐三星980Pro,西数770/850X,海力士P44PRO,金士顿KC3000,致钛7100,梵想7
阅读全文
posted @ 2025-06-08 16:50 十三山入秋
阅读(28)
评论(0)
推荐(0)
2025年6月7日
【git init proj】
摘要: …or create a new repository on the command line echo "# coder_rules" >> README.md git init git add README.md git commit -m "first commit" git branch -
阅读全文
posted @ 2025-06-07 17:16 十三山入秋
阅读(10)
评论(0)
推荐(0)
2025年5月29日
【idea: 社区版本彩色控制台: vm option】
摘要: edit configurations -> Modify Options -> Add VM Options -Dspring.output.ansi.enabled=ALWAYS
阅读全文
posted @ 2025-05-29 16:42 十三山入秋
阅读(33)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
公告