题目1436:Repair the Wall 时间限制:1 秒 内存限制:128 兆 题目描述: Long time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. ...
分类:
其他好文 时间:
2016-07-23 15:13:50
阅读次数:
134
题目链接:http://www.codeforces.com/problemset/problem/271/A题意:给你一个四位数,求比这个数大的最小的满足四个位的数字不同的四位数。C++代码: #include <iostream> #include <algorithm> using names ...
分类:
其他好文 时间:
2016-07-20 19:07:36
阅读次数:
145
#输出所得标签的‘’属性值 获取 head里面的第一个meta的content值soup.head.meta['content'] 获取第一个span的内容soup.span.string 获取第一个span的内容 soup.span.textname属性叫keywords 所有对象 soup.fi ...
分类:
其他好文 时间:
2016-07-20 10:30:12
阅读次数:
389
beautiful number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 596 Accepted Submission(s): 370 ...
分类:
其他好文 时间:
2016-07-19 22:17:04
阅读次数:
873
You are beautiful, but that is not why I love you. 你如此美丽,但我并非因此而爱你。 Although we have always been told that don't judge a thing from its appearance, it ...
分类:
其他好文 时间:
2016-07-18 02:36:34
阅读次数:
175
题意:在一个序列中,当遇到递增的数时,会觉得开心,现在给一组数,问可以开心几次 ...
分类:
其他好文 时间:
2016-07-12 21:28:00
阅读次数:
130
做回测系统发现股票季报不能很好的表现每天的总股本。于是在新浪发现了数据源,决定用beatifulSoup爬一下。 先是读取股票code对应页面, 这里推荐用下面这种,因为用lxml会有几个code的页面解析不到,具体原因可能是页面太长。 下面直接找id的话用find(id=xxx)就行。 得到的数据 ...
分类:
编程语言 时间:
2016-07-12 01:26:11
阅读次数:
156
Beautiful Palindrome Number Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1067 Accepted Submiss ...
分类:
其他好文 时间:
2016-07-09 23:47:01
阅读次数:
390
Beautiful numbers 题目链接 Beautiful numbers 题目链接 Description Volodya is an odd boy and his taste is strange as well. It seems to him that a positive inte ...
分类:
其他好文 时间:
2016-07-08 21:39:05
阅读次数:
164
通过BeautifulSoup库的get_text方法找到网页的正文:#!/usr/bin/envpython
#coding=utf-8
#HTML找出正文
importrequests
frombs4importBeautifulSoup
url=‘http://www.baidu.com‘
html=requests.get(url)
soup=BeautifulSoup(html.text)
printsoup.get_text()
分类:
编程语言 时间:
2016-06-27 00:12:04
阅读次数:
528