摘要: 由于学校作业需要对景点评论做一个汇总和分析,这里以T程网站为例,进行爬虫分析,爬取景点评论。开干! 景点评论页面 首先找到我们要爬取的评论页面: F12打开开发者工具,点击Network,Fetch/XHR: 这里遇到个问题,页面被添加了无限断点,Fetch/XHR中没有任何数据,推荐用以下方法规避 阅读全文
posted @ 2024-12-22 19:27 Kalzzz 阅读(108) 评论(0) 推荐(0)
摘要: 准备工作 1.下载安装包和补丁 点此链接(提取码aaaa) 2.解决网盘下载太慢问题 参考此链接 开始安装 参考补丁内安装教程 安装完成 成品展示 注意事项 安装过程中需断网 阅读全文
posted @ 2021-02-20 15:43 Kalzzz 阅读(143) 评论(0) 推荐(0)
摘要: /************************ char_to_int函数 **************************/ void char_int(char* p, long int* q) //p指向要转换数组首地址 { union change { long int d; uns 阅读全文
posted @ 2020-07-30 20:44 Kalzzz 阅读(67) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 using namespace std; 3 4 int num[4] = { 2, 2, 4, 6 }; 5 int f() 6 { 7 bool state[5][6]; //在linux中注意用memset(state,false,sizeof( 阅读全文
posted @ 2020-07-27 18:13 Kalzzz 阅读(112) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_37059483/article/details/81662359 阅读全文
posted @ 2020-07-09 19:42 Kalzzz 阅读(144) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 5 int arrayInit(int size, int **outbuf) 6 { 7 int a; 8 int *buf = NULL; 9 buf = (int *)malloc(sizeof(i 阅读全文
posted @ 2020-07-01 17:18 Kalzzz 阅读(152) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 int arrayInit(int size, int **outbuf) //一维数组的初始化 5 { 6 int *a = NULL; 7 a=(int*)malloc(sizeof(int)*(si 阅读全文
posted @ 2020-06-30 23:22 Kalzzz 阅读(281) 评论(0) 推荐(0)
摘要: 1 template <typename Type> //关键字class 与typename的区别,,前者可能是类,后者是一个类型 2 Type min(Type a, Type b) 3 { 4 return a < b ? a : b; 5 } 6 7 template <class Type 阅读全文
posted @ 2020-06-30 21:24 Kalzzz 阅读(146) 评论(0) 推荐(0)
摘要: 一、继承 (1)继承的概念 在了解继承之前首先要知道[类]-class,而继承则是描述类与类之间关系的,通常代表了is a关系。例如,哺乳动物是动物,狗是哺乳动物,因此,狗是动物,等等。 当创建一个类时,您不需要重新编写新的数据成员和成员函数,只需指定新建的类继承了一个已有的类的成员即可。这个已有的 阅读全文
posted @ 2020-06-22 13:07 Kalzzz 阅读(313) 评论(0) 推荐(0)
摘要: 1.strcpy:字符串复制函数 strcpy(A,B)表示用B覆盖A。(A字符长度要大于等于B字符长度加1,1为null结束符长度) 2.strncpy strncpy(A,B,n)表示把B中的n个字符复制到A当中(n为正整数) 阅读全文
posted @ 2019-03-25 14:35 Kalzzz 阅读(491) 评论(0) 推荐(0)