传送门 Description Mike has a sequence A?=?[a1,?a2,?...,?an] of length n. He considers the sequence B?=?[b1,?b2,?...,?bn] beautiful if the gcd of all its ...
分类:
其他好文 时间:
2017-04-23 21:36:29
阅读次数:
378
import requests import os import re import re import urllib import urllib.parse from bs4 import BeautifulSoup count=0#小类的个数 all_url='http://category.d ...
分类:
其他好文 时间:
2017-04-22 14:39:50
阅读次数:
133
传送门 Description Leonid wants to become a glass carver (the person who creates beautiful artworks by cutting the glass). He already has a rectangular w ...
分类:
其他好文 时间:
2017-04-21 00:12:53
阅读次数:
286
1 基本信息 Beautiful Soup是用于处理解析页面信息的 具体的说, Beautiful Soup库是解析, 遍历, 维护"标签树"的功能库 安装方法 最基本的使用 2 基本元素 Beautiful Soup处理的内容文档一般是HTML页面 HTML页面是标签对形成的 这些标签对最终会形成 ...
分类:
其他好文 时间:
2017-04-12 21:48:02
阅读次数:
128
In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in th ...
分类:
其他好文 时间:
2017-04-12 20:27:29
阅读次数:
225
题目: Description Bo has been in Changsha for four years. However he spends most of his time staying his small dormitory. One day he decides to get out ...
分类:
其他好文 时间:
2017-04-10 21:22:36
阅读次数:
201
前言 Python非常适合用来开发网页爬虫,理由如下:1、抓取网页本身的接口相比与其他静态编程语言,如java,c#,c++,python抓取网页文档的接口更简洁;相比其他动态脚本语言,如perl,shell,python的urllib2包提供了较为完整的访问网页文档的API。(当然ruby也是很好... ...
分类:
编程语言 时间:
2017-04-10 15:19:32
阅读次数:
357
循环语句重点 一、循环控制语句 1、break终止本层循环,继续执行循环后面语句(当循环有多层时 break只会跳过一层循环) 2、Continue 跳过本次循环 继续执行下次循环 for循环 continue执行后,继续执行循环变量更新语句n++ ,对于while、do-while、continu ...
分类:
其他好文 时间:
2017-04-10 11:42:05
阅读次数:
164
public class Fen { String mianma; int liang; boolean likesoup; Fen(String m, int l, boolean s){ mianma=m; liang=l; likesoup=s; } public Fen(String m, ... ...
分类:
其他好文 时间:
2017-04-10 10:59:48
阅读次数:
231
解析XML 使用Beautiful Soup ...
分类:
编程语言 时间:
2017-04-09 23:21:20
阅读次数:
257