标签:style blog http ar color sp for on div
import datetime def date_range(start_date,end_date): for n in range(int((end_date-start_date).days)): yield start_date+datetime.timedelta(n) start=datetime.datetime(2014,11,26,0,0,0) end=datetime.datetime(2014,12,2,0,0,0) for i in date_range(start, end): print i.strftime(‘%Y%m%d‘) #
标签:style blog http ar color sp for on div
原文地址:http://www.cnblogs.com/ChenKeng/p/4141794.html