相关文章
python使用grpc
proto 
首先编写proto,也可以根据对象生成proto 
syntax  "proto3";package text;service TextSender{rpc Send(Text) returns (SendResponse);rpc Resend(Text) returns (SendResponse);
}message Text{string text  1;
}message SendResponse{bool suce…            
建站知识
2025/10/31 11:53:26
echars 设置滚动条演示,
dataZoom: [// 滑动条{zoomLock:true,xAxisIndex: 0, // 这里是从X轴的0刻度开始type: "slider", // 这个 dataZoom 组件是 slider 型 dataZoom 组件startValue: 0, // 从头开始。endValue: 20, // 一次性展示几个。// fillerColor: "#023661", // 选中范围…            
建站知识
2025/10/21 13:17:05
C++分级调试日志打印实现(可变参数宏的使用)
实现调试日志分级打印 
LOG_ERROR  1,
LOG_WARN  2,
LOG_INFO  3,
LOG_DEBUG  4 
根据实际需求可以动态调整打印调试日志等级,便于调试功能 
实现方法:通过单例创建打印日志类,通过调用打印日志类方法打印日志 
头文件 
#ifndef _LOG_H_
#def…            
建站知识
2025/11/4 8:33:46
代码随想录算法训练营第二十八天丨 回溯算法part04
491.递增子序列 
思路 
这个递增子序列比较像是取有序的子集。而且本题也要求不能有相同的递增子序列。 
在90.子集II (opens new window)中是通过排序,再加一个标记数组来达到去重的目的。 
而本题求自增子序列,是不能对原数组进行排序的,排…            
建站知识
2025/11/3 17:36:00
文件夹图片相似图片检测并删除相似图片
项目开源地址 
pip install imagededupgit clone https://github.com/idealo/imagededup.git
cd imagededup
pip install "cython>0.29"
python setup.py installQuick Start from imagededup.methods import PHash
phasher  PHash()# Generate encodings for all…            
建站知识
2025/11/4 8:31:59
Linux查看日志文件的常用命令
1、查看文件最后1000行内容 tail -n 1000 filename 
2、实时查看文件最后1000行内容,动态刷新 tailf -n 1000 filename tail -f -n 1000 filename 
3、按照关键字搜索日志 cat filename | grep 关键字 
4、按照关键字搜索并包含前(后)多少行 【(A前B后C前…            
建站知识
2025/10/30 19:03:48
线性代数-Python-02:矩阵的基本运算 - 手写Matrix及numpy中的用法
文章目录 一、代码仓库二、矩阵的基本运算2.1 矩阵的加法2.2 矩阵的数量乘法2.3 矩阵和向量的乘法2.4 矩阵和矩阵的乘法2.5 矩阵的转置 三、手写Matrix代码Matrix.pymain_matrix.pymain_numpy_matrix.py 一、代码仓库 https://github.com/Chufeng-Jiang/Python-Linear-Algebra-…            
建站知识
2025/10/21 13:48:36

