www.qt-ui.com 原创技术文章 当我们需要处理窗口以外的全局键盘和鼠标事件的时候,我们可以通过installEventFilter在QApplication上安装事件过滤器来进行处理。 调用示例如下: UIGQtPOSLogin::UIGQtPOSLogin(QWidget *parent ...
分类:
其他好文 时间:
2020-06-21 14:18:17
阅读次数:
107
C=conv2(A,B,'shape') A:输入矩阵/图像 B:卷积核 当shape=full时,返回全部二维卷积结果,即返回C的大小为(ma+mb-1)x(na+nb-1) shape=same时,返回与A同样大小的卷积中心部分 shape=valid时,不考虑边界补零,即只要有边界补出的零参与 ...
分类:
其他好文 时间:
2020-06-21 13:36:36
阅读次数:
48
Valid Parentheses (E) 题目 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An inp ...
分类:
其他好文 时间:
2020-06-21 09:35:16
阅读次数:
33
保存为图像文件 可以使用plt.savefig()函数将图形保存到png文件中。 示例 # 保存图形 plt.savefig("foo.png") # 保存为透明图像 plt.savefig("foo.png", transparent=True) 保存为PDF 示例 # 导入 PdfPages f ...
分类:
编程语言 时间:
2020-06-21 00:51:07
阅读次数:
94
SpringBoot运行原理初探 pom.xml 父依赖 直接父依赖主要管理项目的资源过滤及插件! <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifac ...
分类:
编程语言 时间:
2020-06-20 23:51:35
阅读次数:
57
#valid卷积 在full卷积的卷积过程中,会遇到$K_$靠近I的边界(K矩阵与I矩阵),就会有部分延申到I之外,这时候忽略边界,只考虑I完全覆盖$K_$内的值情况,这个的过程就是valid卷积。一个高为H1,宽为W1的矩阵I与高为H2,宽为W2的矩阵K,在H1大于等于H2,W1大于等于W2的情况 ...
分类:
其他好文 时间:
2020-06-20 19:30:08
阅读次数:
224
无限极分类实现 数据准备 data=[ {"cat_id":1,"name":"安徽","parent_id":0}, {"cat_id":2,"name":"福建","parent_id":0}, {"cat_id":3,"name":"阜阳","parent_id":1}, {"cat_id": ...
分类:
其他好文 时间:
2020-06-20 16:14:58
阅读次数:
90
Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a ...
分类:
其他好文 时间:
2020-06-20 13:20:54
阅读次数:
43
link class Solution { public: const int mod=1E9+7; vector<long long> powerof26; string longestDupSubstring(string S) { int n=S.size(); powerof26.resiz ...
分类:
其他好文 时间:
2020-06-20 10:58:13
阅读次数:
40
Vue中子组件调用父组件的方法,这里有三种方法提供参考,第三种方式是将父组件的方法传到子组件,这不是很常用,就不记录了,原文https://www.cnblogs.com/jin-zhe/p/9523782.html 第一种方法是直接在子组件中通过this.$parent.event来调用父组件的方 ...
分类:
其他好文 时间:
2020-06-19 23:14:40
阅读次数:
64