python时间相减实例源码
import timeimport datetime_time = time.time_Nowtime = time.strftime('%Y-%m-%d',time.localtime(time.time()))_lasttime = datetime.datetime.now() - datetime.timedelta(days =1)_lasttime = str(_lasttime).split(' ')[0]print _Nowtimeprint _lasttime
补充:Web开发 , Python ,