-
实验3
实验3 1. 任务1 源代码 (task1.c) #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade -
数据采集与融合第三次作业:图片爬虫与 Scrapy 落库
学号:102402124 姓名:洪豊帧 仓库地址:https://gitee.com/【填写你的 Gitee 用户名】/data-collection-homework 这次作业一共三个部分:先用 requests 手写一个图片爬虫(单线程 / 多线程各一版),再用 Scrapy 走 Item → -
数据采集与融合技术 第二次作业
三道题:中国天气网 7 日预报、新浪财经 A 股行情、软科 2021 中国大学排名(含 F12 抓包过程)。三份脚本都是 requests + 标准库,数据统一落到 SQLite,重复运行只更新不重复插入。 一、作业代码与运行结果 1.1 作业①与作业②:页面解析、接口分页与数据入库 作业①:中国天 -
实验2
任务1 1.实验源码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T(); // 析 -
数据采集作业2
第二次作业(数据采集与融合技术) 本次作业共三个小任务,分别爬取中国气象网 7 日天气预报、新浪财经沪深 A 股行情、软科中国大学排名(2021 主榜),数据统一保存到 SQLite 数据库中。 运行环境:Python 3.12、requests、beautifulsoup4、lxml,数据库使用 -
实验二
实验一 源文件 t.h源码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T(); / -
实验2
任务1: 源代码: t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T(); / -
实验二
实验二:类和对象 Task1:类 T 的构造和析构 // task1.cpp #include <iostream> #include <utility> #include "t.h" void test() { using std::cout; using std::endl; cout << " -
实验二
实验任务1 task1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移 -
实验2
1. 实验任务1 分别给出t.h, t.cpp, task1.cpp源码 t.h: #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 -
删数问题作业
删数问题作业 删数问题 贪心策略 给一个 n 位正整数(用字符串存),删 k 位、剩下数字保持原相对次序,使结果最小。所有结果都是 n-k 位,位数相同,所以从高位起逐位比大小即可。 我的策略:每轮删掉从左到右第一个比后一位大的数字(第一个下降点的左端);如果整串不下降,就删最后一位;重复 k 次。 -
实验二
实验任务1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 -
实验2
任务1 源代码: 点击查看代码 //t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 -
数据采集第三次作业
第三次作业博客(多线程图片爬虫 + Scrapy 框架爬虫) 运行环境:Windows 11、Python 3.13、Scrapy 2.20 主要依赖:requests、beautifulsoup4、scrapy、pymysql 作业内容:① 单/多线程图片爬取;② Scrapy + Xpath + -
高级语言程序设计课程第六次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600218 姓名:曾 -
数据采集二
一.天气数据 如图所示,用开发者模式,提取出日期为h1,天气描述为p.wea,span为最高温,i为最低温。 import requests # 用于发送 HTTP 请求 from bs4 import BeautifulSoup # 用于解析 HTML 网页 import sqlite3 # 用于 -
实验二
实验任务一 源码 t.cpp #include "t.h" #include <iostream> #include <stdexcept> #include <string> // static成员数据: 类内声明、类外初始化 const std::string T::doc{"a simple -
数据采集第二次作业
数据采集第二次作业 运行环境:Windows 11、Python 3.13 主要依赖:requests、beautifulsoup4、json(标准库)、sqlite3(标准库) 作业内容:分别完成天气预报、股票行情、大学排名三个定向爬虫,抓取数据并写入 SQLite 数据库。 一、作业实现(代码与 -
实验二
task1 源代码 t.h #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio); static -
实验2
任务1 源代码 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T