前好几天学了Map集合,简单总结下重点: Map集合中有各种重要的方法,包括增加,删除元素,获取集合的大小,清空集合,对Map集合进行遍历:1.get(k) 返回为value 2.将Map集合转换成Set集合,然后对Set集合进行遍历(即利用迭代器的方式:其中分别包含for()+get()方法或者f ...
分类:
其他好文 时间:
2021-04-19 15:57:16
阅读次数:
0
在配置Jenkins的源码管理的时候,遇上了这个错 Host key verification failed。 就是下图这里 图片是已经修正后的,报错的原因是说没有权限。 一开始一直以为是Jenkins配置问题,百度了好几个晚上都没有找到答案。 后来看到有人是在服务器上配置git的SSH,然后我意识 ...
分类:
其他好文 时间:
2021-04-19 15:57:00
阅读次数:
0
解决问题-》有的放矢 1.spark 报错 Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient reso ...
分类:
其他好文 时间:
2021-04-19 15:56:23
阅读次数:
0
【一】OpenCV 系列文章 【基础类】 OpenCV 之 编译配置 4.5.1 OpenCV 之 Mat 类 OpenCV 之 基本绘图 【图像处理】 OpenCV 之 直方图处理 OpenCV 之 霍夫变换 OpenCV 之 图像平滑 OpenCV 之 空间滤波 OpenCV 之 边缘检测 Op ...
分类:
其他好文 时间:
2021-04-19 15:55:56
阅读次数:
0
配置git: git config --global user.name "XXX" git config --gloaal user.email "XXX@...com" 文件在用户目录下 .gitconfig 中,可以手动删除 关联远程仓库 转到工程目录下 为了下次连接远程仓库不用输入密码,设置 ...
分类:
其他好文 时间:
2021-04-19 15:55:18
阅读次数:
0
问题: 给定二维数组, 求其中子矩形中元素和不大于K 的最大和。 Example 1: Input: matrix = [[1,0,1],[0,-2,3]], k = 2 Output: 2 Explanation: Because the sum of the blue rectangle [[0 ...
分类:
其他好文 时间:
2021-04-19 15:55:02
阅读次数:
0
递归,就是函数内部自己调用自己,首先要把它想成函数的调用,如果一个函数递归调用了(自己调用了自己)5次,可以把它想成5个函数的调用,fn1 调用fn2(), fn2调用fn3(), fn3调用了fn4(), fn4调用了fn5(), 只不过fn1, fn2, fn3, fn4, fn5 都是一样的函 ...
分类:
其他好文 时间:
2021-04-19 15:54:43
阅读次数:
0
转自: https://zhuanlan.zhihu.com/p/151853503 在Windows 10升级到2004版本以后,自带的Windows subsystem for linux也可以升级至第二代也就是wsl2,它的轻量和不低的性能,使得它成为虚拟机的有力替代品,可以在不安装linux ...
分类:
其他好文 时间:
2021-04-19 15:54:04
阅读次数:
0
string 容器 常见用法 string s1 = "Hello" string s2("Hello") string s3(s2) string s4 = s3 getline(cin,s)// 从cin中读取一行给s s.empty()// 空?true:false; s.size()//返回 ...
分类:
其他好文 时间:
2021-04-19 15:53:19
阅读次数:
0
题目链接 A. Average Height 奇数放一侧,偶数放一侧即可。 AC代码如下: #include<cstring> #include<algorithm> #include<cmath> #include<iostream> #include<queue> #include<cstdio ...
分类:
其他好文 时间:
2021-04-19 15:52:38
阅读次数:
0
pytorch写神经网络 (1)准备数据集 (2)涉及模型(yheight) (3)构造损失函数和优化器 (4)训练周期(前馈、反馈、更新) 1 import torch 2 3 #1.准备数据 4 x_data=torch.tensor([[1.0],[2.0],[3.0]]) 5 y_data= ...
分类:
其他好文 时间:
2021-04-19 15:52:05
阅读次数:
0
一行代码获取所有的财务指标数据 点击查看JQData sdk详细内容? 财务指标数据返回字段 列名列的含义 code 股票代码 pubDate 日期 statDate 日期 eps 每股收益EPS(元) adjusted_profit 扣除非经常损益后的净利润(元) operating_profit ...
分类:
其他好文 时间:
2021-04-19 15:51:46
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0
#! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio ...
分类:
其他好文 时间:
2021-04-19 15:50:26
阅读次数:
0
一、起因 使用到了elementUI的组件,但是其鬼样式已经提前写好了,你不能改变它的原始样式,因为它全部组件的CSS都加上了scoped属性,限制了样式的作用范围与可访问范围。所以当我们直接修改elementUI的样式的时候,通常没啥效果。 二、解决:使用deep或者>>> 1.知识储备: 首先v ...
分类:
其他好文 时间:
2021-04-19 15:50:07
阅读次数:
0
【deerhang】 java的异常全部继承于Throwable,Throwable下有两个实现类:Error和Exception Error意味着不可恢复的错误,例如OutOfMemoryError和StackOverFlowError,这类错误信息不需要捕获,一般无法自动恢复。 Exceptio ...
分类:
其他好文 时间:
2021-04-19 15:48:27
阅读次数:
0
论文:《Learning Similarity Conditions Without Explicit Supervision》 论文地址:https://arxiv.org/pdf/1908.08589.pdf 代码地址:https://github.com/rxtan2/Learning-Sim ...
分类:
其他好文 时间:
2021-04-19 15:47:48
阅读次数:
0