一. Koa初体验 1.1. 认识Koa 除了express,另外一个非常流行的Node Web服务器框架就是Koa。 Koa官方的介绍: koa:next generation web framework for node.js; koa:node.js的下一代web框架; 事实上,koa是exp ...
分类:
其他好文 时间:
2021-02-01 12:52:21
阅读次数:
0
C C. Nezzar and Symmetric Array 题意 原来有2n个数,各不相同,这2n个数中,每个数的相反数也在其中。 Nezzar在100万年前计算出了 每个数与其他数的差值 的和,但忘掉了原来那2n个数。 问从这2n个计算出来的差值和能不能推出一个满足条件的2*n个数。 思路 发 ...
分类:
其他好文 时间:
2021-02-01 12:34:47
阅读次数:
0
Hadoop搭建HA遇到的坑 重要报错信息 Zookeeper日志 Cannot open channel to 2 at election address node03/172.17.0.4:3888 java.net.ConnectException: Connection refused (C ...
分类:
其他好文 时间:
2021-02-01 12:17:43
阅读次数:
0
默认表格前面的复选框是可以选择多个,但有的需求是只能选择一个, 可以通过clearSelection和toggleRowSelection去实现 ...
分类:
其他好文 时间:
2021-02-01 12:16:21
阅读次数:
0
1丶错误信息 :无法定位到Dockerfile 2丶解决方案 : 看路径是否写对 看Dockerfile 是否写对 3丶SUCCESS : ...
分类:
其他好文 时间:
2021-01-30 12:19:48
阅读次数:
0
01.note 一.不用pytorch的module模型手写简单的线性问题 1)输入train_data和test_data #1.输入数据集 inputs = np.array([[73, 67, 43], [91, 88, 64], [87, 134, 58], [102, 43, 37], [ ...
分类:
其他好文 时间:
2021-01-30 12:05:31
阅读次数:
0
对于一般形式约束优化问题: \[ \begin{array}{cl} \min & f(x) \\ \mathrm{s.t.} & g_i(x) \leq0, \quad i=1,\cdots ,m \\ & h_i(x) = 0, \quad i=1,\cdots ,l \end{array} \ ...
分类:
其他好文 时间:
2021-01-29 12:20:15
阅读次数:
0
自定义事件:鼠标拖动一个图片,原图片变为阴影,图片跟着鼠标用,鼠标放下,图片放下,原图消失。 void mousePressEvent(QMouseEvent *event); //鼠标按下事件 void dragEnterEvent(QDragEnterEvent *event); //拖动进入事 ...
分类:
其他好文 时间:
2021-01-29 12:17:24
阅读次数:
0
简单类型 1、简单元素 指只能包含文本内容,不能够包含子元素,也没有属性的元素。 格式:<xs:element name="xxx" type="yyy"/> 例子: <xs:element name="name" type="xs:string"/> <xs:element name="age" ...
分类:
其他好文 时间:
2021-01-29 12:08:16
阅读次数:
0
数组创建 Array.of() 将参数中所有值作为元素形成数组。 如: console.log(Array.of(1, 2, 3, true,'www')); // [1, 2, 3, true, 'www'] console.log(Array.of()) //[] Array.from() 将【 ...
分类:
编程语言 时间:
2021-01-29 12:06:36
阅读次数:
0