摘要: github参考: carboneio/carbone 参考2: Template creation documentation - Carbone Report Generator 阅读全文
posted @ 2024-07-30 22:33 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 参考1 : github 搜索gotenberg 阅读全文
posted @ 2024-07-30 21:37 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: """依赖: 如公用的子函数 目的: 提高代码的复用率""" 0 from fastapi import Depends 1 函数作为依赖 2 类作为依赖 3 子依赖的创建和调用 4 路径参数中使用依赖 5 py文件公共依赖 6 全局依赖 阅读全文
posted @ 2024-07-21 10:00 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 图 a=20 b=100 #计算百分比 echo `awk 'BEGIN{printf "%.1f%%\n",('$a'/'$b')*100}'` 20.0% 阅读全文
posted @ 2024-07-17 18:02 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 参考1: 网段划分?子网掩码和IP,如何区分是否同一个网段? | Server 运维论坛 (learnku.com) 参考2:网络基础概念解析:什么是网段? - IT技术运维笔记 (huamp.com) 百度: linux 查看 网段 阅读全文
posted @ 2024-07-12 18:13 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 参考: Linux 上的 vi 编辑器指南 (linux-console.net) 阅读全文
posted @ 2024-07-11 18:46 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 参考: JetBrains Toolbox | JetBrains: Developer Tools for Professionals and Teams 阅读全文
posted @ 2024-07-10 15:09 tslam 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 若对pydantic定义的请求体中的字段进行校验, 使用Field类 from pydantic import Field 对路径参数校验, 使用 Path类 对查询参数校验, 使用Query类 from fastapi import APIRouter, Path, Query 阅读全文
posted @ 2024-07-07 14:17 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: > 覆盖 root@xxxxxxxxx:/home# echo "world1" > 11.txt >> 追加 root@xxxxxxxxx:/home# echo "world" >> 11.txt 阅读全文
posted @ 2024-07-03 20:12 tslam 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 参考链接: [linux] 下 ls 文件夹和文件没有颜色的解决办法 - wangju003 - 博客园 (cnblogs.com) 阅读全文
posted @ 2024-07-02 20:25 tslam 阅读(1) 评论(0) 推荐(0) 编辑