上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 133 下一页
摘要: 1、函数式编程如std::bind、std::thread传参数等使用时,是对参数直接拷贝而不是引用 如: #include <functional> #include <iostream> void f(int& n1, int& n2, const int& n3) { std::cout << 阅读全文
posted @ 2022-05-31 15:32 朱小勇 阅读(179) 评论(0) 推荐(0)
摘要: 1、功能 用一个从value递增的数列给[first, last)的容器赋值 2、实例 #include <iostream> #include <vector> #include <numeric> int main() { std::vector<int> nums(10); for (int 阅读全文
posted @ 2022-05-31 14:51 朱小勇 阅读(1366) 评论(0) 推荐(0)
摘要: 1、安装lxml 注意xml.etree.ElementTree也支持部分xpath,但是非常有限,只有如下: 可以使用lxml模块,这个模块是ElementTree的升级版,但是需要安装,ElementTree是内建不用安装 pip install lxml 2、xpath语法 ①、谓语 路径表达 阅读全文
posted @ 2022-05-30 19:42 朱小勇 阅读(1652) 评论(0) 推荐(0)
摘要: 1、str ret = str(100); 阅读全文
posted @ 2022-05-26 09:41 朱小勇 阅读(158) 评论(0) 推荐(0)
摘要: 1、安装anaconda ①、默认安装,安装后它自己会添加环境变量; ②、设置一个虚拟环境,名字为Python_3.9 conda create -n Python_3.9 python=3.9 注意联网,可以用anaconda安装后自带的cmd执行;环境最终被存放在了D:/Anaconda/env 阅读全文
posted @ 2022-05-25 20:37 朱小勇 阅读(1922) 评论(0) 推荐(0)
摘要: 1、代码 wchar_t *QString2Wchar(QString buf) { return (wchar_t*)reinterpret_cast<const wchar_t *>(buf.utf16()); } QString Wchar2QString(wchar_t *buf) { re 阅读全文
posted @ 2022-05-25 17:49 朱小勇 阅读(492) 评论(0) 推荐(0)
摘要: 1、报错代码 AreaSeries { QtObject { } } 报标题错误 2、解决 AreaSeries { propperty var tt: QtObject { } } 参考:https://forum.qt.io/topic/81135/cannot-assign-to-non-ex 阅读全文
posted @ 2022-05-18 15:29 朱小勇 阅读(638) 评论(0) 推荐(0)
摘要: 1、 echo %Third_Party% 阅读全文
posted @ 2022-05-18 09:54 朱小勇 阅读(96) 评论(0) 推荐(0)
摘要: 1、代码 #ifdef _WIN64 qDebug()<<64; #else qDebug()<<32; #endif 2、注意 _WIN64只有在64位程序上才被定义; _WIN32在64和32位程序上都会被定义 阅读全文
posted @ 2022-05-17 11:18 朱小勇 阅读(446) 评论(0) 推荐(0)
摘要: matlab:https://zhuanlan.zhihu.com/p/34217853 视频:https://www.rohde-schwarz.com.cn/products/test-and-measurement/benchtop-analyzers/rs-fsvr-real-time-sp 阅读全文
posted @ 2022-05-09 17:13 朱小勇 阅读(105) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 133 下一页