------------只要够努力,人生最坏的结局不过是大器晚成!!!

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 53 下一页
摘要: 方式: 1.手动登入,获取cookie 2.使用cookielib库 和 HTTPCookieProcessor处理器 阅读全文
posted @ 2018-07-14 13:03 ystraw 阅读(282) 评论(0) 推荐(0)
摘要: Handler处理器 和 自定义Opener opener是 urllib2.OpenerDirector 的实例,我们之前一直都在使用的urlopen,它是一个特殊的opener(也就是模块帮我们构建好的)。 但是基本的urlopen()方法不支持代理、cookie等其他的HTTP/HTTPS高级 阅读全文
posted @ 2018-07-14 13:00 ystraw 阅读(268) 评论(0) 推荐(0)
摘要: 爬去豆瓣排行 阅读全文
posted @ 2018-07-13 10:59 ystraw 阅读(173) 评论(0) 推荐(0)
摘要: 1.更多工具->拓展程序->打开开发者模式-》重启浏览器 2.将拓展程序拖入,确认安装 阅读全文
posted @ 2018-07-13 10:41 ystraw 阅读(311) 评论(0) 推荐(0)
摘要: 爬取有道页面,实现中文翻译成英文: 阅读全文
posted @ 2018-07-12 23:59 ystraw 阅读(128) 评论(0) 推荐(0)
摘要: 接受到的html被压缩了,要解压,在工具栏有decode 阅读全文
posted @ 2018-07-12 21:39 ystraw 阅读(299) 评论(0) 推荐(0)
摘要: 被写文件坑了一晚上,因为自己写了writeFile(),但是调用的是WriteFile()刚好python里面有WriteFile()所以刚好不报错!!!!! 阅读全文
posted @ 2018-07-12 20:45 ystraw 阅读(207) 评论(0) 推荐(0)
摘要: #切片: # L = ['aaa', 'bbb', 'ccc', 'ddd'] # print(L[1 : 3]) #取[1, 3):下标 # L = list(range(100)) # print(L[:10]) # print(L[-10:]) # # print(L[2:10:4]) #从2开始取,步长为4,小于10 # # [2, 6] # print('abcdefg... 阅读全文
posted @ 2018-07-11 11:37 ystraw 阅读(124) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2036 改革春风吹满地 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submissio 阅读全文
posted @ 2018-06-26 19:47 ystraw 阅读(261) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; int n; void Merge(int *r1, int low, int mid, int high) { // int *r2 = new int(high - low + 1); int *r2; r2 = (int *)malloc(sizeof(int) * (high -... 阅读全文
posted @ 2018-06-23 18:55 ystraw 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 53 下一页

不经一番切孤寒,怎得梅花扑鼻香