typeid操作符可以用来获取一个类型/表达式的名称: #include <iostream> #include <typeinfo> using namespace std; int main() { std::cout << typeid(int).name() << std::endl; re ...
分类:
其他好文 时间:
2021-04-23 12:05:50
阅读次数:
0
求点的最小外接矩 rect1 = cv2.minAreaRect(box): def back_forward_convert(coordinate, with_label=True): """ :param coordinate: format [x1, y1, x2, y2, x3, y3, x ...
分类:
编程语言 时间:
2021-04-23 11:53:53
阅读次数:
0
函数的默认参数 //注意事项:入股哦有一个位置有了默认参数,那么从这个位置开始,从左往后都必须有默认参数 //函数声明和实现里,只能有一个里面有默认参数,不能同时都有默认参数 void test03(int a = 20, int b = 30) {cout << "a + b = " << a + ...
分类:
编程语言 时间:
2021-04-22 16:33:54
阅读次数:
0
<?php //index.php 公众号后台配置的路径是这个index.php $wechatObj = new wechat(); $wechatObj->responseMsg(); class wechat { //返回消息模板 private $textTpl = [ 'text' => ...
分类:
微信 时间:
2021-04-22 15:53:55
阅读次数:
0
Mutex系列是根据我对晁岳攀老师的《Go 并发编程实战课》的吸收和理解整理而成,如有偏差,欢迎指正~ 目标本系列除了希望彻底学习和了解 golang 中 sync.Mutex 的原理和使用,更希望借 golang 中 Mutex 的发展和演变,了解并发场景下锁的设计与实现方法以及不同业务场景下的一 ...
分类:
其他好文 时间:
2021-04-22 15:35:38
阅读次数:
0
并查集可以有两个优化方案, 1,平衡性优化:对每个结点标记一个重量值,在进行union操作时,将重量小的添加到重量大的节点上。 2,路径压缩:在进行find操作时,顺便对路径进行压缩 private int find(int x) { while (parent[x] != x) { // 进行路径 ...
分类:
其他好文 时间:
2021-04-22 15:12:28
阅读次数:
0
根据完全二叉树的性质(编号为$u$的节点的左儿子编号为$u2$,右儿子编号为$u2+1$),并利用后序遍历进行递归建树。 $level[i]$存储编号为$i$的节点的值。 const int N=35; int post[N]; int level[N]; int n; int k; void df ...
分类:
其他好文 时间:
2021-04-21 12:54:57
阅读次数:
0
from pynput.keyboard import Controller, Key, Listener # 监听按压 def on_press(key): try: print("正在按压:", format(key.char)) except AttributeError: print("正在 ...
分类:
其他好文 时间:
2021-04-21 12:38:44
阅读次数:
0
1、yml文件 #spring datasource spring.datasource.url=jdbc:mysql:///db_notice?serverTimezone=GMT%2B8&charactterEncoding=uft8 spring.datasource.username=roo ...
分类:
编程语言 时间:
2021-04-21 12:14:39
阅读次数:
0
在配置好OpenGL开发库的环境下,在main.cpp文件中运行如下代码,从而学习。 配置方法:https://www.cnblogs.com/cchHers/p/14674397.html #include "GLShaderManager.h" //着色器管理器(shader manager)类 ...
分类:
其他好文 时间:
2021-04-21 11:55:44
阅读次数:
0