上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 1冒泡排序 bubble_sort.m function y=bubble_sort(x) x_len=length(x); for i=1:x_len-1 for j=1:x_len-i if (x(j)>x(j+1)) [x(j),x(j+1)]=swap(x(j),x(j+1)); end e 阅读全文
posted @ 2020-07-25 00:57 SunCY 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.首先进官网 版本的话据说是找和自己eclipse对应的,但是我就随便选了一个就可以了,点击link 2.把连接粘贴下来 3.然后进eclipse,选择这个 4.然后这样都打勾,选择next 5.然后一直点next accept之类的就好了 6.重启eclipse,然后这样测试是不是装好了 new 阅读全文
posted @ 2020-07-08 09:42 SunCY 阅读(452) 评论(0) 推荐(0) 编辑
摘要: request中文API https://requests.readthedocs.io/zh_CN/latest/ 阅读全文
posted @ 2020-07-04 21:28 SunCY 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 登陆的方式 1.实例化session,使用session发送post请求,在使用它获取登陆后的页面 # coding=utf-8 import requests session = requests.session() post_url = "http://www.renren.com/PLogin 阅读全文
posted @ 2020-07-04 17:30 SunCY 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 找一个免费IP的网站 # coding=utf-8 import requests proxies = {"http":"http://114.234.80.188:80"}#就代理填到这里 headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Int 阅读全文
posted @ 2020-07-04 15:57 SunCY 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 要爬取的网站:http://fy.iciba.com/ https://blog.csdn.net/weixin_43808690/article/details/87886075 原文链接 代码: from urllib import request,parse import json class 阅读全文
posted @ 2020-07-04 14:26 SunCY 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 如果不改变header,往往只能获取到很少一部分的content。所以我们要改变header import requests respones = requests.get("https://www.baidu.com") print(respones.status_code) print(resp 阅读全文
posted @ 2020-07-03 11:49 SunCY 阅读(2688) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1724342/202007/1724342-20200703095548307-272193960.png)![](https://img2020.cnblogs.com/blog/1724342/202007/1724342-20200703095605740-2141259811.png)![](https://img... 阅读全文
posted @ 2020-07-03 11:44 SunCY 阅读(134) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1724342/202007/1724342-20200703100705142-144313380.png)![](https://img2020.cnblogs.com/blog/1724342/202007/1724342-20200703100943629-485341444.png)![](https://img2... 阅读全文
posted @ 2020-07-03 10:15 SunCY 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 爬虫的分类 ● 通用爬虫:通常指搜索引|擎的爬虫 聚焦爬虫:针对特定网站的爬虫 阅读全文
posted @ 2020-07-03 09:23 SunCY 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页