today= datetime.date.today().strftime('%Y-%m-%d')
yesteday=(datetime.date.today() + datetime.timedelta(-1)).strftime('%Y-%m-%d')
bfesteday=(datetime.date.today() + datetime.timedelta(-2)).strftime('%Y-%m-%d')
now = datetime.datetime.now()
month_start = datetime.datetime(now.year, now.month, 1).strftime('%Y-%m-%d')
month_end = datetime.datetime(now.year, now.month, calendar.monthrange(now.year, now.month)[1]).strftime('%Y-%m-%d')
python 昨天今天明天
最新推荐文章于 2024-06-03 14:34:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)