DesmonDay's Blog

一只小辣鸡的自我拯救之路


  • 首页

  • 分类

  • 归档

  • 标签

hdoj1016-素数环递归

发表于 2019-03-10 | 分类于 hdoj
题目描述Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. ...
阅读全文 »

hdoj1009-贪心

发表于 2019-03-10 | 分类于 hdoj
题目描述Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N rooms. The i-th room conta ...
阅读全文 »

hdoj1241-DFS

发表于 2019-03-10 | 分类于 hdoj
题目描述Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates ...
阅读全文 »

python爬虫学习-day7

发表于 2019-03-08
丁香园大作战12345678910111213141516171819202122from selenium import webdriverimport timebs = webdriver.Chrome()bs.get("http://www.dxy.cn")time.sleep(2)bs.find_element_by_link_text('登录').click()bs.find_eleme ...
阅读全文 »

python爬虫学习-day6-IP代理

发表于 2019-03-06
什么是IP互联网协议地址(英语:Internet Protocol Address,又译为网际协议地址),缩写为IP地址(英语:IP Address),是分配给用户上网使用的网际协议(英语:Internet Protocol, IP)的设备的数字标签。常见的IP地址分为IPv4与IPv6两大类,但是也有其他不常用的小分类。 IP协议Internet体系结构一个TCP/IP互联网提供了三组服务。最底 ...
阅读全文 »

python爬虫学习-day5-selenium

发表于 2019-03-05
Selenium学习(待补充)安装selenium并学习,使用该工具模拟登陆163邮箱。 首先需要下载GoogleDriver,需要与自己的Chrome版本对应。由于某些原因,官网https://sites.google.com/a/chromium.org/chromedriver/downloads 无法下载,于是我去国内镜像找,http://npm.taobao.org/mirrors/ch ...
阅读全文 »

python爬虫学习-day4-Xpath

发表于 2019-03-04
今天学习xpath,相对比较简单(也有可能是因为任务简单),直接开始操作。 Xpath简单介绍XPath 是一门在 XML 文档中查找信息的语言。XPath 可用来在 XML 文档中对元素和属性进行遍历。 XPath 是 W3C XSLT 标准的主要元素,并且 XQuery 和 XPointer 都构建于 XPath 表达之上。其官方教程为http://www.w3school.com.cn/xp ...
阅读全文 »

python爬虫学习-day3-BeautifulSoup

发表于 2019-03-03
今天学习BeautifulSoup,并且利用此工具爬取丁香园跟帖。BeautifulSoup官方教程:https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html 由于教程本身很详细,这里不再进行细讲,直接开始任务的实现。进入给定的网站http://3g.dxy.cn/bbs/topic/509959#!_id=626626 ...
阅读全文 »

python爬虫学习-day2正则表达式

发表于 2019-03-02
今天要学会正则表达式。使用菜鸟教程的正则表达式教程,主要使用python正则表达式函数进行学习。 正则表达式(Regular Expression)是一种文本模式,包括普通字符(例如,a到z之间的字母)和特殊字符(称为”元字符”)。正则表达式使用单个字符串来描述、匹配一系列匹配某个句法规则的字符串。 简介我们很可能使用 ? 和 通配符来查找硬盘上的文件。? 通配符匹配文件名中的 0 个或 1 个 ...
阅读全文 »

python爬虫学习-day1

发表于 2019-02-28
加入Datawhale开始学习共计一周的python爬虫,争取高质高效完成任务。 学习get与post请求通过requests实现简单操作使用Requests来实现请求的操作很简单,下面先分别贴出两个函数的参数含义(直接使用python的help函数即可): 两个函数的用法也很清晰明了了。具体使用代码如下:123456789101112131415import requests# get请求u ...
阅读全文 »
1…567…14
DesmonDay

DesmonDay

主攻方向:NLP

133 日志
14 分类
12 标签
RSS
GitHub
© 2020 DesmonDay
本站访客数:
由 Hexo 强力驱动
主题 - NexT.Muse