#!/usr/bin/env python
#2天前
ctime = time.strftime('%Y%m%d',time.localtime(time.time()-2*24*60*60))
print ctime
#1天前
ctime = time.strftime('%Y%m%d',time.localtime(time.time()-1*24*60*60))
print ctime
#当天
ctime = time.strftime('%Y%m%d',time.localtime(time.time()))
print ctime