摘要: 相比于传统的网络请求实现爬虫,Selenium可以模拟用户在浏览器上的操作,处理由JavaScript生成的动态内容,以执行点击、滚动、表单提交等操作,模拟真实用户访问,绕过一些反爬机制,更方便的获取动态生成的网站数据。 本篇教程将采取环境搭建、自动化操作、使用cookie自动化登陆、实现抓取数据等 阅读全文
posted @ 2024-06-03 22:12 云霄雨霁 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 在Mapper层使@Select注解进行SQL语句查询时,往往需要进行参数传入和拼接,一般情况下使用两种占位符#{参数名}和${参数名},两者的区别为: 一、两种占位符的区别 1、参数传入方式的区别 #{}是预编译处理,后台输出的日志会将SQL语句中的#{}占位符输出为?,将传入的Parameter 阅读全文
posted @ 2024-01-10 15:35 云霄雨霁 阅读(416) 评论(0) 推荐(0) 编辑
摘要: TriSparseMatrix.h 1 #pragma once 2 3 #include<iostream> 4 #include<string.h> 5 #include<cstring> 6 #define DEFAULT_SIZE 5 7 #define MAX_SIZE 20 8 type 阅读全文
posted @ 2022-04-21 23:35 云霄雨霁 阅读(70) 评论(0) 推荐(0) 编辑
摘要: String.h 1 #include<iostream> 2 #include<string.h> 3 #include<cstring> 4 using namespace std; 5 6 class String { 7 protected: 8 //串的数据成员 9 char* sVal; 阅读全文
posted @ 2022-04-17 19:23 云霄雨霁 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 3 using namespace std; 4 5 void Hanoi(int n, char A, char B, char C) { 6 //把n个盘子从A通过B移动到C 7 if (n == 1) { 8 //递归出口,一个盘子直接移动 9 c 阅读全文
posted @ 2022-04-16 16:20 云霄雨霁 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 3 typedef int Status; 4 #define DEFAULT_SIZE 0 5 #define SUCCESS 1 6 #define OVER_FLOW 0 7 8 //队列的类模板 9 template<class ElemType 阅读全文
posted @ 2022-04-16 15:01 云霄雨霁 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 3 #include<assert.h> 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<iostream> 8 using 阅读全文
posted @ 2022-04-15 17:37 云霄雨霁 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 typedef int Status; //将status状态设置为int 6 typedef int ElemType;//ElemType状态设置为int 7 8 阅读全文
posted @ 2022-04-09 15:31 云霄雨霁 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 typedef int Status; //将status状态设置为int 6 typedef int ElemType;//ElemType状态设置为int 7 8 阅读全文
posted @ 2022-04-05 21:29 云霄雨霁 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 登陆界面、登陆跳转和进度条功能实现 首先打开Android studio新建一个空项目,打开layout文件夹下的activity_main.xml文件,来设置登陆界面的布局。登陆界面需要两个输入框,一个用来输入账号,一个用来输入密码,一个登录按钮和一个进度条。具体布局代码实现如下: 1 <?xml 阅读全文
posted @ 2022-03-15 14:39 云霄雨霁 阅读(810) 评论(0) 推荐(0) 编辑