上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: dpkg 参数 全称 作用 -i --install 安装 .deb 包 -r --remove 卸载软件(保留配置) -P --purge 完全卸载(删除配置) -t --test 测试模式(不实际操作) -l --list 列出已安装的包 -s --status 查看包状态(如版本、依赖) # 阅读全文
posted @ 2025-06-14 20:33 十三山入秋 阅读(10) 评论(0) 推荐(0)
摘要: 只要修改一个配置文件 ~/.ssh/config # 1 Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa # 2 Host github.com-hugh HostName github.com User 阅读全文
posted @ 2025-06-14 13:19 十三山入秋 阅读(8) 评论(0) 推荐(0)
摘要: 报错示例 kex_exchange_identification: Connection closed by remote host Connection closed by 127.0.0.1 xxxx 解决方法 修改 ~/.ssh/config 参考:https://docs.github.co 阅读全文
posted @ 2025-06-14 12:55 十三山入秋 阅读(83) 评论(0) 推荐(0)
摘要: # 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 十三山入秋 阅读(5) 评论(0) 推荐(0)
摘要: 你的理解很对,下面详细解答你的两个问题: 1. Python 的 * 解包适用哪些类型? *user 可以用于元组、列表,以及任何可迭代对象(如 set、range、字符串等)。 只要这个对象可以被遍历,且元素个数和函数参数个数一致,都可以用 * 解包。 示例: def foo(a, b, c): 阅读全文
posted @ 2025-06-11 10:18 十三山入秋 阅读(13) 评论(0) 推荐(0)
摘要: for user in initial_users: add_user(*user) 这种写法其实是 Python 的“参数解包”语法。 下面详细解释一下: 1. 语法说明 假设 initial_users 是一个列表,里面每个元素都是一个元组,例如: initial_users = [ ("张三" 阅读全文
posted @ 2025-06-11 10:06 十三山入秋 阅读(21) 评论(0) 推荐(0)
摘要: # function_call 是大模型返回的结构化格式(如 OpenAI 的 function calling / tool calling) { "function_call": { "name": "get_weather", "arguments": "{ \"location\": \"S 阅读全文
posted @ 2025-06-09 19:38 十三山入秋 阅读(51) 评论(1) 推荐(0)
摘要: 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 十三山入秋 阅读(11) 评论(0) 推荐(0)
摘要: pip install git+...:拉下来 + 安装成 Python 包 操作方式 是否下载代码 是否自动安装 是否被 pip 管理 用途 git clone ✅ 是 ❌ 否 ❌ 否 本地开发、调试 pip install git+... ✅ 是(临时) ✅ 是 ✅ 是 安装为依赖项 pip i 阅读全文
posted @ 2025-06-08 22:57 十三山入秋 阅读(17) 评论(0) 推荐(0)
摘要: # 移动硬盘目录结构推荐(程序员 + 生活文件) ## 1. 工作相关目录(Work) - **Projects/** 存放所有开发项目代码,按语言或项目名称分类。 例如:`Python/`、`JavaScript/`、`Go/` 等。 - **Libraries/** 第三方库、框架源码或本地依赖 阅读全文
posted @ 2025-06-08 17:29 十三山入秋 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页