03 2021 档案

摘要:1、现象 在/etc/rc.local里 source /etc/profile cd /home/wisetron/cpp/src/784_main sudo ./auto_start_matlab.sh & source /etc/profile是为了将matlab需要的依赖库加入环境变量,然后 阅读全文
posted @ 2021-03-31 19:27 朱小勇 阅读(219) 评论(0) 推荐(0)
摘要:1、现象 在 /etc/profile里加了环境变量,但是重启这个环境变量未加入成功 2、原因 可能是被其他加载环境变量的脚本刷掉了 参考:https://blog.csdn.net/my_wings/article/details/102617631 3、解决 在.bashrc里添加 vim ~/ 阅读全文
posted @ 2021-03-31 19:11 朱小勇 阅读(1668) 评论(0) 推荐(0)
摘要:echo $PATH 阅读全文
posted @ 2021-03-31 19:06 朱小勇 阅读(2073) 评论(0) 推荐(0)
摘要:1、基本操作 QPixmap pm = this->grab(); pm.save("111.jpg"); 只截取了当前显示的部分进行存储,未显示部分没有 2、存储QTableWidget 如果是表格,往往行数过多就会导致有些行数被隐藏掉了,可以通过将窗体高度增加的形式来存储【实际上还是只存储了显示 阅读全文
posted @ 2021-03-29 18:44 朱小勇 阅读(938) 评论(0) 推荐(0)
摘要:一、判断文件是否存在 1.用QFileInfo::isFile()方法 二、判断文件夹是否存在1.用QFileInfo::isDir()方法2.用QDir::exists()方法 三、不确定字符串是文件还是文件夹路径1.用QFileInfo::exists()方法2.用QFile::exists() 阅读全文
posted @ 2021-03-10 14:14 朱小勇 阅读(1606) 评论(0) 推荐(0)
摘要:1、打开网页 https://www.ipaddress.com/ 2、分别输入 github.com http://github.global.ssl.fastly.net 3、获取对应的ip 4、将两个ip追加到文件末尾 C:/windows/system32/drivers/etc/hosts 阅读全文
posted @ 2021-03-04 00:00 朱小勇 阅读(149) 评论(0) 推荐(0)
摘要:#include <iostream> #include <set> #include <vector> using namespace std; //定义训练数据 #define M 3 #define N 15 //为了计算简单,对A2={S, M, L},令S=1, M=2, L=3; //Y 阅读全文
posted @ 2021-03-03 18:26 朱小勇 阅读(83) 评论(0) 推荐(0)