PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with k vertices and k?-?1 edges, ...
分类:
数据库 时间:
2020-02-27 00:38:52
阅读次数:
97
1. 定义 当你想让一个以上的对象有机会能够处理某个请求的时候,就使用责任链模式。 2. 类图 3. Example 作为员工需要请假或者加薪,需要经历:技术leader——部门经历——CTO的流程。 输出结果: 由此可见,请求被处理的时候,你不知道是谁在进行处理。请求有可能会被处理,也有可能不会被 ...
分类:
其他好文 时间:
2020-02-26 22:36:08
阅读次数:
48
一个开发路上的行者,如有问题可发邮件到852089299@qq.com,共同探讨。 ...
分类:
其他好文 时间:
2020-02-26 21:20:18
阅读次数:
124
//快速排序 class ArrayList { constructor () { this.array = [] } insert (data) { return this.array.push(data) } quickSort () { this.array = this.quick(this ...
分类:
编程语言 时间:
2020-02-26 20:34:45
阅读次数:
56
连续张量理解和contiguous()方法使用,view和reshape的区别 待办内存共享:下边的x内存布局是从0开始的,y内存布局,不是从0开始的张量 For example: when you call transpose(), PyTorch doesn't generate new ten... ...
分类:
其他好文 时间:
2020-02-26 19:12:02
阅读次数:
399
这几天刚接触example,很多内容都是破碎的,写一篇文章加深理解。 一、什么是example类 mybatis-generator会为每个字段产生Criterion,为底层的mapper.xml创建动态sql。如果表的字段比较多,产生的example类会十分庞大。理论上通过example类可以构造 ...
分类:
其他好文 时间:
2020-02-26 17:10:43
阅读次数:
103
前言 本人一直在寻求一个利用golang来编写linux的gui程序的工具,凑巧之间发现了qml这个好东西。其简单的语法加上底层c++(Qt)的支持让我直接就爱上了他,并且众所周知,golang可以与c++进行交互那么既然c++可以和qml进行通信,那么golang也可以与qml进行通信。Qt官方虽 ...
分类:
其他好文 时间:
2020-02-26 13:57:46
阅读次数:
1152
快速排序其实是使用分治法的思想,即在原数组中找一个数p,然后将原数组中比数p大的数放到此数的右边,比数p小的数放到次数的左边。 口诀:1.找中轴 2.左边快排 3.右边快排 主体代码如下: void quick_sort(int * data,int left,int right){ if(left ...
分类:
编程语言 时间:
2020-02-26 01:29:39
阅读次数:
89
标准查询运算符: 标准查询运算符是一组方法,提供包括筛选where、投影select、聚合(例如max)、排序order by等在内的查询功能。 string sentence = "the quick brown fox jumps over the lazy dog"; string[] wor ...
分类:
其他好文 时间:
2020-02-26 01:18:36
阅读次数:
73
一:Qt带参数的信号 main.cpp #include "widget.h" #include "slot.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); //查找Q ...
分类:
其他好文 时间:
2020-02-26 01:14:32
阅读次数:
236