2017年9月29日

python OSError: [Errno 22] Invalid argument: 'D:\\crawle\x01.html1'

摘要: import urllib.request file = urllib.request.open("http://www.baidu.com") data = file.read() print(data) fhandle = open("D:\crawle\html1","wb") fhandle 阅读全文

posted @ 2017-09-29 21:26 JETIME庚 阅读(2980) 评论(1) 推荐(0) 编辑

python 最简单的爬虫

摘要: import urllib.request file=urllib.request.urlopen("http://www.qq.com") data=file.read() dataline = file.readline() print(data) print(dataline) 阅读全文

posted @ 2017-09-29 20:38 JETIME庚 阅读(204) 评论(0) 推荐(0) 编辑

求1-50的偶数和,和奇数和

摘要: public static void main(String args[]){ int doubleNumber = 0; int singleNumber = 0; int i =1; while(i <= 50){ if(i %2==0){ doubleNumber+=i; }else{ sin 阅读全文

posted @ 2017-09-29 19:52 JETIME庚 阅读(1439) 评论(0) 推荐(0) 编辑

while 解决 10000米绳子 对折当 绳长小于5米时求绳的对折次数

摘要: public static void main(String args[]){ double length = 10000; int day = 0; while(day > 5){ length = length * 5; day++; } System.out.println(day); } 阅读全文

posted @ 2017-09-29 19:41 JETIME庚 阅读(239) 评论(0) 推荐(0) 编辑

导航