自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 Python学习笔记-网络爬虫(二、提取)

一、Beautiful Soup1、BeautifulSoup库基本元素2、基于bs4库的HTML内容遍历方法3、基于bs4的HTML格式化和编码(让HTML信息可读性更好)二、信息组织与提取方法1、信息标记的三种形式2、三种信息标记形式的比较

2018-01-15 22:21:59 330

原创 Python学习笔记-网络爬虫(一、规则)

一、网络爬虫规则1、Requests库: requests.request(method,url,**kwargs)r = requests.get(url)爬取网页的通用代码框架(考虑错误的处理)HTTP2、网络爬虫“盗亦有道”3、Requests库网络爬虫实例京东商品信息爬取亚马逊商品信息爬取(亚马逊对爬虫限制,要修改html

2018-01-15 14:59:35 298

原创 UVa1368DNA序列

#include#include#define maxn 15void AA(int a[maxn][maxn],char maps[maxn][maxn],int r,int c);void Down(char maps[maxn][maxn],int a[maxn][maxn],int r,int c);int main(){int i,j,r,c,flag=0,key=1;i

2018-01-15 14:42:25 327

原创 UVa1589象棋

#include#include#includeint a[8][5];char A[8];int map[11][10];int Check_G(int r,int c);int Check_R(int r,int c);int Check_H(int r,int c);int Check_C(int r,int c);int main(){ int i,c,num=

2018-01-15 14:41:27 292

原创 UVa201正方形

#include#includeint h[9][9],v[9][9];int tag=0;void Size(int i,int n);int main(){ int i,n,m,r,c,cont=1; char M; while(scanf("%d",&n)){ scanf("%d",&m); getchar(); memset(h,0,sizeof(h));

2018-01-15 14:40:37 266

原创 UVa227谜题

#include#include#define maxn 26int main(){int i=0,j=0,count;int b_x=0,flag,x,y;int b_y=0,cases;char a[5][7],s[maxn];cases=0;while(gets(a[0])){if(a[0][0]=='Z') break;for(i=1;i<5;i++)gets(a[i

2018-01-15 14:40:00 226

原创 UVa232纵横字谜

#include#include#define maxn 15void AA(int a[maxn][maxn],char maps[maxn][maxn],int r,int c);void Down(char maps[maxn][maxn],int a[maxn][maxn],int r,int c);int main(){int i,j,r,c,flag=0,key=1;i

2018-01-15 14:39:17 327

原创 UVa455周期串

#include#includeint main(void){int n,stlen,i,j;char carr[1000];while(scanf("%d",&n)!=EOF){while(n--){scanf("%s",carr);stlen=strlen(carr);for(i=1; i<=stlen; i++){if(stlen%i==0){for(j=i;

2018-01-15 14:38:30 174

原创 UVa489刽子手

#include#include#define maxn 100char s1[maxn],s2[maxn];int Guess();int main(){ int i,T=1; while(scanf("%d",&T) == 1){ if(T == -1) break; scanf("%s",s1); scanf("%s",s2); i=Guess();

2018-01-15 14:37:37 147

原创 Python学习笔记-入门基础补充

之前看Python基础语法跳跃比较厉害,还有一些知识点没有理解,在这里针对自己的实际情况弥补一下知识漏洞。1、字符串:python中字符串用' '或者 " " 括起来:                ①如果字符串本身包含 ' ,比如要表示字符串 I'm OK,这时用""括起来表示,即:”I'm OK" ;类似,如果字 符串包含",可以用' '括起来;                ②如

2018-01-15 12:41:59 342

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除