上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 221 下一页
摘要: 单次打印sql的写法: from sqlalchemy.dialects import mysql sql_cont = builder.statement.compile(dialect=mysql.dialect(), compile_kwargs={"literal_binds": True} 阅读全文
posted @ 2026-05-22 22:32 刘宏缔的架构森林 阅读(18) 评论(0) 推荐(0)
摘要: 一,问题发生的情形: 某文件中的某三行记录被删除后提交了, 这时用 git log -p 找不到原始的三行代码的添加记录, 不知道这个原始三行记录的commit,也不知道所属的分支, 只能看到删除三行代码的记录, 因为是在测试站,此时不能做reset然后用git blame查commit, 怎么找到 阅读全文
posted @ 2026-05-22 22:32 刘宏缔的架构森林 阅读(81) 评论(0) 推荐(0)
摘要: 一,linux上安装了黑体,fc-list可以看到 $ fc-list | grep hei /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc: 文泉驿正黑,WenQuanYi Zen Hei,文泉驛正黑:style=Regular /usr/share/fo 阅读全文
posted @ 2026-05-15 10:53 刘宏缔的架构森林 阅读(30) 评论(0) 推荐(0)
摘要: 一,原因 在 Flasgger 0.9.7.1 版本中,由于其内置的 Swagger UI 模板硬编码了 Google Fonts 的引用, 配置项往往无法彻底屏蔽加载。 要解决这个问题,最直接有效的办法是覆盖内置模板或直接修改源码文件。 二,解决 以下是针对该版本的具体解决方案: 覆盖 Flasg 阅读全文
posted @ 2026-05-15 10:53 刘宏缔的架构森林 阅读(29) 评论(0) 推荐(0)
摘要: 一,安装第三方库 安装numpy和matplotlib $ pip install numpy matplotlib 二,代码: import numpy as np import matplotlib.pyplot as plt # 1. 准备数据 labels = np.array(['得分', 阅读全文
posted @ 2026-05-15 10:53 刘宏缔的架构森林 阅读(103) 评论(0) 推荐(0)
摘要: 一,linux的字体安装在哪里? 查看字体目录: $ fc-list /usr/share/fonts/google-droid/DroidSansHebrew-Regular.ttf: Droid Sans:style=Regular /usr/share/fonts/urw-base35/Nim 阅读全文
posted @ 2026-05-09 17:18 刘宏缔的架构森林 阅读(50) 评论(0) 推荐(0)
摘要: 一,安装 项目地址: https://pub.dev/packages/flutter_riverpod 安装: dependencies: flutter: sdk: flutter go_router: ^17.2.3 flutter_riverpod: ^3.2.1 二,代码: main.da 阅读全文
posted @ 2026-05-05 19:20 刘宏缔的架构森林 阅读(53) 评论(0) 推荐(0)
摘要: 一,安装: 库地址: https://pub.dev/packages/go_router 安装: dependencies: flutter: sdk: flutter go_router: ^17.2.3 二,代码例子: main.dart import 'package:flutter/mat 阅读全文
posted @ 2026-05-05 19:20 刘宏缔的架构森林 阅读(31) 评论(0) 推荐(0)
摘要: 一,报错信息: module 'pkgutil' has no attribute 'find_loader' 二,原因 在 Python 3.14 中,pkgutil.find_loader() 已经被彻底 删除。这是因为该方法自 Python 3.4 起就被标记为弃用,并在 Python 3.1 阅读全文
posted @ 2026-05-04 16:13 刘宏缔的架构森林 阅读(200) 评论(0) 推荐(0)
摘要: 一,原因: 目标服务器上缺少需要的中文字体 二,解决: 把simhei和simsun两种字体:黑体和宋体上传到linux服务器 设置权限 # chmod 644 -R /usr/share/fonts/simhei/ # chmod 644 -R /usr/share/fonts/simsun/ 刷 阅读全文
posted @ 2026-05-04 16:06 刘宏缔的架构森林 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 221 下一页