- 博客(5)
- 收藏
- 关注
原创 python网络数据采集练习2
基于书籍《python网络数据采集》([美]Ryan Mitchell)第二章2.2.3子标签,兄弟标签,父标签。1.处理子标签(两种,第一种children标签,另一种descendants标签,children仅是下一级,descendants则是父标签下所有级别。from urllib.request import urlopenfrom bs4 impor
2018-04-30 22:39:25
137
原创 python网络数据采集练习1
基于书籍《python网络数据采集》([美]Ryan Mitchell)第二章2.2.1用bs4在网站中读取所有颜色为绿色的字段。from urllib.request import urlopenfrom bs4 import BeautifulSouphtml = urlopen("http://www.pythonscraping.com/pages/warandpeace.html"...
2018-04-28 22:19:11
135
转载 素因数分解
#includeint main(){ long long n; while(scanf("%lld",&n)!=EOF){ //long n,i; //scanf("%ld",&n); long long i; printf("%lld=",n); for(i=2;n>=i;i++){ while(n%i=
2017-07-31 15:50:11
307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人