会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朱小勇
博客园
园子
首页
新随笔
联系
管理
订阅
上一页
1
···
24
25
26
27
28
29
30
31
32
···
133
下一页
2022年5月31日
C++-std::iota
摘要: 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 朱小勇
阅读(1372)
评论(0)
推荐(0)
2022年5月30日
python使用lxml的xpath解析xml
摘要: 1、安装lxml 注意xml.etree.ElementTree也支持部分xpath,但是非常有限,只有如下: 可以使用lxml模块,这个模块是ElementTree的升级版,但是需要安装,ElementTree是内建不用安装 pip install lxml 2、xpath语法 ①、谓语 路径表达
阅读全文
posted @ 2022-05-30 19:42 朱小勇
阅读(1664)
评论(0)
推荐(0)
2022年5月26日
Python数字转字符串
摘要: 1、str ret = str(100);
阅读全文
posted @ 2022-05-26 09:41 朱小勇
阅读(160)
评论(0)
推荐(0)
2022年5月25日
Qt调用Python
摘要: 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 朱小勇
阅读(1934)
评论(0)
推荐(0)
Qt之QString与wchar_t 互相转换
摘要: 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 朱小勇
阅读(503)
评论(0)
推荐(0)
2022年5月18日
QML:Cannot assign to non-existent default property error
摘要: 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 朱小勇
阅读(655)
评论(0)
推荐(0)
Windows脚本获取环境变量
摘要: 1、 echo %Third_Party%
阅读全文
posted @ 2022-05-18 09:54 朱小勇
阅读(101)
评论(0)
推荐(0)
2022年5月17日
Qt C++判断当前程序是32还是64位
摘要: 1、代码 #ifdef _WIN64 qDebug()<<64; #else qDebug()<<32; #endif 2、注意 _WIN64只有在64位程序上才被定义; _WIN32在64和32位程序上都会被定义
阅读全文
posted @ 2022-05-17 11:18 朱小勇
阅读(454)
评论(0)
推荐(0)
2022年5月9日
实时频谱图资料
摘要: 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 朱小勇
阅读(111)
评论(0)
推荐(0)
2022年4月30日
Js随机值
摘要: 1、代码 Math.ceil(Math.random()*10); // 获取从 1 到 10 的随机整数,取 0 的概率极小。 搜索 复制
阅读全文
posted @ 2022-04-30 23:30 朱小勇
阅读(60)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
···
133
下一页
公告