博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年12月11日

摘要: from bs4 import BeautifulSoup import re from urllib import request req = request.urlopen("https://en.m.wikipedia.org/wiki/Main_Page").read().decode("utf-8"); soup = BeautifulSoup(req,"html.parser");... 阅读全文

posted @ 2017-12-11 22:11 sunshine_blog 阅读(1649) 评论(0) 推荐(0) 编辑

摘要: 经常遇到string和date之间的转换,把相关的内容总结在这里吧: 1.string格式转化为Date对象: //把string转化为dateDateFormat fmt =new SimpleDateFormat("yyyy-MM-dd"); Date date = fmt.parse(szBe 阅读全文

posted @ 2017-12-11 10:46 sunshine_blog 阅读(210) 评论(0) 推荐(0) 编辑