分类: 笔记

44 篇文章

thumbnail
PVE退出集群:cluster not ready – no quorum?报错
使用pvecm delnode <node>删除节点时遇到: cluster not ready - no quorum? 解决办法: 查看pvecm status 如果有: 执行pvecm expected 1 后 重新执行pvecm delnode <node> 删除节点。
thumbnail
Win11 AMD CPU占用率一直显示百分百解决方案
这样已经很久了 在经过咨询大佬以及搜刮互联网终于发现了解决方案 傻逼巨硬的bug https://answers.microsoft.com/en-us/windows/forum/all/windows-11-100-cpu-usage/516b6c0e-1f6d-4af3-a56b-fd1b62b59c3a https://answers.mi…
AcWing 785. 快速排序
#include <iostream> using namespace std; const int N = 100010; int num[N], n; void quick_sort(int num[], int l, int r){ if(l >= r) return; int x = num[(l+r)/2],…
thumbnail
VEX关键信息传递:关于固件版本马达特性问题
急政暴虐;赋敛不时;朝令而暮改。《汉书·食货志上》 事情起因 事情是这样经过的: 不知道VEXer们在已经完成的比赛和训练中有没有注意过以下事情: 在一场比赛结束或者自动赛结束时,也就是在Field Controller设定为Disabled时段时,马达的状态是什么? 我特地注意了这个问题,因为平衡桥的事情在今年显得尤为重要。 如果电机无法Hold…
Python 批量图片反转颜色
import os from PIL import Image import numpy as np def resize(imgPath,savePath): files = os.listdir(imgPath) files.sort() print('Input Pic Add:',imgPath) print('Starting...') …
Cpp 质数判定(最基础一般理解版)
bool prime( int a ) { int i = 2; if ( a == 2 ) return(true); if ( a < 2 ) return(false); if ( a % 2 == 0 ) return(false); for ( i = 3; i*i <= a; i++ ) if ( a % i == 0 ) …
Cpp 转换大小写
#include <iostream> using namespace std; int main(){ char a; cin>>a; a=a-32; cout<<a; return 0; }