彼岸图网壁纸爬取
本文章最初发布在zhiqin’s Blog,未经允许,任何人禁止转载!
前言:
前段时间在捣鼓博客的时候,看到别人博客里的图片都很好看,于是自己也想去找些好看的图片插入到博客中。找来找去就找到了彼岸图网(受害者登场),一进去看到这么多好看的图片,就心想着要是把这些图片都下载下来就好了,于是就有了这个项目。
PS:下载下来的图片并不是真正的4k壁纸,而是网站里的缩略图。
项目环境
Python版本
Python 3.8.1
Python的依赖库
requests
lxml
运行Python的idel(可选)
pycharm
介绍运行界面启动界面
爬虫实验
实验之后发现爬取成功。oh耶✌!
由于等下还要上课,下次在分析这次项目的思路和代码。如果有需要源码的小伙伴可以联系博主(到留言板留言或者直接点联系博主)。
点击查看源码 —> 源码地址
readme
项目名称 spyder_web开发环境
前端框架
Bootstrap-3.4.1-dist
jQuery v2.0.3
Java配置
JDK版本: 1.8
Tomcat版本: 9.0
MySQL数据库: 5.5.62
项目类型: Dynamic Web Project
项目名称: spyder_web
Servlet版本: 3.0
src文件夹下要创建的包结构
com.e3ee.dao
com.e3ee.service
com.e3ee.controller
com.e3ee.entity
2021-07-19日 任务分配如下
人名
任务
任务要求图
郑智钦
首页
李帅
注册页面
李文轩
登陆页面
张卫东
联系我们页面
胡倬睿
产品页面
彭志中
价值页面
04-树5 Root of AVL Tree (25 分)
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this property. Figures 1-4 illustrate the rotation rules.
Now given a sequence of insertions, you are supposed to tell the root of the resulting AVL tree.
Input Specification:Each input file contains ...
04-树4 是否同一棵二叉搜索树 (25 分)
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:给定一个插入序列就可以唯一确定一棵二叉搜索树。然而,一棵给定的二叉搜索树却可以由多种不同的插入序列得到。例如分别按照序列{2, 1, 3}和{2, 3, 1}插入初始为空的二叉搜索树,都得到一样的结果。于是对于输入的各种插入序列,你需要判断它们是否能生成一样的二叉搜索树。
输入格式:输入包含若干组测试数据。每组数据的第1行给出两个正整数N (≤10)和L,分别是每个序列插入元素的个数和需要检查的序列个数。第2行给出N个以空格分隔的正整数,作为初始插入序列。最后L行,每行给出N个插入的元素,属于L个需要检查的序列。
简单起见,我们保证每个插入序列都是1到N的一个排列。当读到N为0时,标志输入结束,这组数据不要处理。
输出格式:对每一组需要检查的序列,如果其生成的二叉搜索树跟对应的初始序列生成的一样,输出“Yes”,否则输出“No”。
输入样例:123456784 23 1 4 23 4 1 23 2 4 12 12 11 20
...
Tree Traversals Again
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
二叉树太难了啊,呜呜呜,太难了家人们。
题目:03-树3 Tree Traversals Again (25 分)
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stack operations are: push(1); push(2); push(3); pop(); pop(); push(4); pop(); pop(); push(5); push(6); pop(); pop(). Then a unique binary tree (shown in Figure 1) can b ...
List Leaves
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.
Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤10) which is the total number of nodes in the tree – and hence the nodes are numbered from 0 to N−1. Then N lines follow, each corresponds to a node, and gives the indices of the left and right children ...
树的同构
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:给定两棵树T1和T2。如果T1可以通过若干次左右孩子互换就变成T2,则我们称两棵树是“同构”的。例如图1给出的两棵树就是同构的,因为我们把其中一棵树的结点A、B、G的左右孩子互换后,就得到另外一棵树。而图2就不是同构的。
图1
图2
现给定两棵树,请你判断它们是否是同构的。
输入格式:输入给出2棵二叉树树的信息。对于每棵树,首先在一行中给出一个非负整数N (≤10),即该树的结点数(此时假设结点从0到N−1编号);随后N行,第i行对应编号第i个结点,给出该结点中存储的1个英文大写字母、其左孩子结点的编号、右孩子结点的编号。如果孩子结点为空,则在相应位置上给出“-”。给出的数据间用一个空格分隔。注意:题目保证每个结点中存储的字母是不同的。
输出格式:如果两棵树是同构的,输出“Yes”,否则输出“No”。
输入样例1(对应图1):1234567891011121314151617188A 1 2B 3 4C 5 -D - -E ...
合法的出栈序列
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of the stack. For example, if M is 5 and N is 7, we can obtain 1, 2, 3, 4, 5, 6, 7 from the stack, but not 3, 2, 1, 7, 5, 6, 4.
Input Specification:Each input file contains one test case. For each case, the first line contains ...
链表反转
前言
在准备考研复习专业课数据结构,所以我在mooc平台上找了浙江大学的数据结构课程重新学习,感觉老师留的课后题都很有趣,所以想记录下自己的学习过程。
题目:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K=3, then you must output 3→2→1→6→5→4; if K=4, you must output 4→3→2→1→5→6.
Input Specification:Each input file contains one test case. For each case, the first line contains the address of the first node, a positive N (≤105) which is the total number of nodes, and ...