python返回昨天的日期
#-*-coding:utf-8-*- import datetime def getYesterday(): # today=datetime.date.today() oneday=datetime.timedelta(days=1) yesterday=today-oneday return yesterday
python返回昨天的日期
#-*-coding:utf-8-*- import datetime def getYesterday(): # today=datetime.date.today() oneday=datetime.timedelta(days=1) yesterday=today-oneday return yesterday