例如获取2020年5月一共有多少个星期二,一共跨了多少个星期 public class MainTest { public static void main(String[] args) throws ParseException { SimpleDateFormat sp = new SimpleDateFormat("yyyyMM"); SimpleDateFormat sp2 = new SimpleDateFormat("yyyy年MM月"); String
# -*- coding: utf-8 -*- import urllib2 import re #connect to a URL website = urllib2.urlopen("http://www.baidu.com") #read html code html = website.read() #use re.findall to get all the links links = re.findall('"((http|ftp)s?://.*?)"'
原文地址:http://bdcwl.blog.163.com/blog/static/765222652009104171521/ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date = sdf.parse("2009-11-04");//String-->Date String sdate = sdf.format(date );// Data-->String Ti