会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
灵火
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
13
下一页
2025年5月27日
避坑指南:Go 语言中 append 与结构体指针的那些事儿
摘要: 好的,这是为你精简后的博客文章,只保留核心概念和解决方案: Go 语言避坑:append 结构体后数据“丢失”的秘密 在 Go 语言中,处理数据分页和聚合时,你可能会遇到一个困惑:为什么我明明往结构体里加了数据,但 append 到切片后,数据却没了? 问题本质:append 的“副本”行为 我的代
阅读全文
posted @ 2025-05-27 13:48 灵火
阅读(55)
评论(0)
推荐(0)
2025年3月27日
windows 默认编码设置 utf-8
摘要: win + i 进入设置,然后按图操作: 注意: 这样设置可能导致某些软件无法运行或中文乱码。
阅读全文
posted @ 2025-03-27 10:30 灵火
阅读(380)
评论(0)
推荐(0)
windows 查看控制台编码
摘要: 在 powershell 上 [System.Text.Encoding]::Default 在 cmd 上 chcp
阅读全文
posted @ 2025-03-27 10:26 灵火
阅读(33)
评论(0)
推荐(0)
2025年3月21日
配置文件格式对比表
摘要: 配置文件格式对比表 格式 简单性 性能 复杂数据支持 可读性 生态支持 适用场景 优点 缺点 示例 官网/文档 TOML 中 中 高 高 通用生态 通用配置(如 Rust) 标准化,支持复杂结构和注释 语法稍复杂 [user]\nname = "alice" TOML 官网 JSON 中 高 高 中
阅读全文
posted @ 2025-03-21 15:02 灵火
阅读(210)
评论(0)
推荐(0)
2025年3月13日
vscode usersettings.json 配置
摘要: vscode 通用配置 { "chat.commandCenter.enabled": false, "security.workspace.trust.untrustedFiles": "open", "editor.smoothScrolling": true, "editor.fontFami
阅读全文
posted @ 2025-03-13 23:46 灵火
阅读(29)
评论(0)
推荐(0)
vscode 配置终端
摘要: 打开 user settings.json 在里面加上下面两个值 "terminal.integrated.defaultProfile.windows": "ps7", "terminal.integrated.profiles.windows": { "ps7": { "icon": "term
阅读全文
posted @ 2025-03-13 23:43 灵火
阅读(118)
评论(0)
推荐(0)
2025年3月4日
oh-my-posh 自己使用配置
摘要: %USERPROFILE\%zf_october_comb.omp.json { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "console_ti
阅读全文
posted @ 2025-03-04 19:55 灵火
阅读(102)
评论(0)
推荐(0)
2025年3月2日
windows 指导网站
摘要: https://www.tenforums.com/tutorials/
阅读全文
posted @ 2025-03-02 16:01 灵火
阅读(17)
评论(0)
推荐(0)
2025年2月27日
ddddocr 使用
摘要: python ddddocr使用 https://github.com/sml2h3/ddddocr # example.py import ddddocr ocr = ddddocr.DdddOcr() image = open("example.jpg", "rb").read() result
阅读全文
posted @ 2025-02-27 16:58 灵火
阅读(89)
评论(0)
推荐(0)
2025年2月20日
Scoop 安装常用工具
摘要: 必装工具 git scoop install main/git 添加 buckets scoop bucket add extras scoop bucket add versions scoop bucket add sysinternals scoop bucket add java scoop
阅读全文
posted @ 2025-02-20 20:38 灵火
阅读(496)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
13
下一页
公告