摘要: 具体代码如下: import requests import re headers = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74. 阅读全文
posted @ 2020-07-29 20:06 喜欢爬的孩子 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 简单的一下:只爬取一个页面上的(可以爬取多个页面)用到了拼接format以及list的遍历的等等小的知识点 import requests import re #下面这个就是伪装成浏览器正常访问浏览器 headers = {'user-agent':'Mozilla/5.0 (Windows NT 阅读全文
posted @ 2020-07-29 19:03 喜欢爬的孩子 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 分组背包: #include<iostream> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int n,m; const int N=105; int f[N],v[N],w[N]; int 阅读全文
posted @ 2020-07-29 19:01 喜欢爬的孩子 阅读(101) 评论(0) 推荐(0) 编辑