- 博客(9)
- 收藏
- 关注
原创 QT 使用QplainTextEdit写个简单的日志模块
在windows 运行exe时,qt在运行exe时需要查看日志,但是没调试环境,有时候需要迁移到其他没有qt的环境, 简单写个日志展示,可以定位错误。在main 函数 添加一下消息处理器。
2024-06-05 15:03:34
487
原创 python 使用selenium框架爬取王者荣耀官网壁纸
import seleniumfrom selenium import webdriverimport timefrom threading import Threadimport requestsimport osfrom selenium.webdriver.support import uifrom selenium.webdriver.common.by import Bydef seek_link(browser,address,page): container = .
2021-12-23 17:53:44
354
原创 deepin python Message: unknown error: cannot find Chrome binary
from selenium import webdriverfrom selenium.webdriver.chrome.service import Servicetry: # browser = webdriver.Chrome('/opt/apps/cn.google.chrome/files/chrome') s = Service(r"/opt/apps/cn.google.chrome/files/chrome") driver = webdriver.Chrome(.
2021-12-21 14:05:35
815
原创 C++汉诺塔
#include <iostream>#include <vector>#include <algorithm>using namespace std;void hannuota(int &res, int shikuai, string a, string b, string c){ if (shikuai == 1) { res++; cout << "第" << res .
2021-12-20 18:13:57
492
原创 C++时间戳转换
#include <iostream>#include <time.h>#include <unistd.h>using namespace std;int main(){ time_t t; struct tm p, q; time(&t); for (int i = 0; i < 6; i++) { t -= 10; char time22[30]; .
2021-10-29 17:51:44
217
原创 C++查找英文书籍最多的单词
#include<iostream>#include<fstream>#include<string>#include<set>#include<map>#include<vector>#include<algorithm>using namespace std;bool cmp(pair<string, int> &a, pair<string, int> &b) .
2021-10-20 17:32:27
99
原创 (超简单)cpp-httplib搭建服务器和客户端
这里使用了httplib.h,是直接使用的别人封装好的库,超简单搭建服务器和客户端,但是要学习还是得自己一步一步的去敲,不要用库,学会在用这个库就简单服务端#include "httplib.h"#include "json.hpp"#include <iostream>#include <thread>using namespace std;using namespace httplib;struct test{ string name; int
2021-10-13 10:34:24
8308
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人