2021年1月26日
摘要:
https://www.csdn.net/gather_2b/NtDaIg5sMTktYmxvZwO0O0OO0O0O.html 一直都把堆栈放一起,所以很多人会误以为他们的组合是一个词语,就像“衣服”一样简单,其实不然,今天在下就将最近学习总结的一些与大家分享。 一个由C/C++编译的程序占用的内
阅读全文
posted @ 2021-01-26 15:23
莫水千流
阅读(803)
推荐(0)
摘要:
https://blog.csdn.net/libaineu2004/article/details/86487354 connect用于连接qt的信号和槽,在qt编程过程中不可或缺。它其实有第五个参数,只是一般使用默认值,在满足某些特殊需求的时候可能需要手动设置。Qt::AutoConnectio
阅读全文
posted @ 2021-01-26 15:21
莫水千流
阅读(459)
推荐(0)
摘要:
ttps://blog.csdn.net/linux_wgl/article/details/33419409 信号与槽作为QT的核心机制在QT编程中有着广泛的应用,本文介绍了信号与槽的一些基本概念、元对象工具以及在实际使用过程中应注意的一些问题。 QT是一个跨平台的C++ GUI应用构架,它提供了
阅读全文
posted @ 2021-01-26 15:20
莫水千流
阅读(1189)
推荐(0)
2021年1月6日
摘要:
#include "stdafx.h"#include <stdio.h>typedef struct Result{ Result():low(0), high(0), sum(0){} Result(int lowVal, int highVal, int sumVal) : low(lowVa
阅读全文
posted @ 2021-01-06 16:13
莫水千流
阅读(91)
推荐(0)
2020年10月21日
摘要:
def loadJson(jsonfile): with open(jsonfile, 'r', encoding='utf-8') as f: dictData = json.load(f) return dictData def saveJson(jsonfile, data): with op
阅读全文
posted @ 2020-10-21 09:57
莫水千流
阅读(128)
推荐(0)
2020年9月18日
摘要:
原创 躬行之 UI 2018/04/20 22:35 阅读数 3.7K RecyclerView 的每个Item的点击事件并没有像ListView一样封装在组件中,需要Item的单击事件时就需要自己去实现,在Adapter中为RecyclerView添加单击事件参考如下: RecyclerView的
阅读全文
posted @ 2020-09-18 13:24
莫水千流
阅读(170)
推荐(0)
2020年9月14日
摘要:
在安装了Python2.7的Windows7上,如何检测路径是否是符号链接? 这不起作用os.path.islink(),如果false或不支持,则返回false,并且我提供的路径肯定是一个符号链接,所以我假设windows不支持它?我能做什么?在 已被浏览了6978次 更新日期: 2020-09-
阅读全文
posted @ 2020-09-14 05:43
莫水千流
阅读(335)
推荐(0)
2020年9月13日
摘要:
主要作用与拷贝文件用的。 1.shutil.copyfileobj(文件1,文件2):将文件1的数据覆盖copy给文件2。 import shutil f1 = open("1.txt",encoding="utf-8") f2 = open("2.txt","w",encoding="utf-8"
阅读全文
posted @ 2020-09-13 18:09
莫水千流
阅读(337)
推荐(0)
摘要:
目录 [TOC] 1、两种变量的定义参考 2、两种变量的作用域原理及使用 1、Normal Variables (1)、包含 add_subdirectory()、function()。(本质是值拷贝) (2)、**包含 include()、macro() **(本质有点类似 c 中的 #inclu
阅读全文
posted @ 2020-09-13 07:16
莫水千流
阅读(282)
推荐(0)
摘要:
cmake语法不仅仅可以适用于 CMakeLists.txt,也适用于 xxx.cmake 文档。 在 OpenCV 的 CMakeLists.txt 中,很多 ocv_XXX() 的函数,都是定义在相应的 xxx.cmake 中。 比如:L116 1 2 3 4 5 6 7 8 9 10 incl
阅读全文
posted @ 2020-09-13 07:03
莫水千流
阅读(2963)
推荐(0)