📜  获取昨天日期python代码示例

📅  最后修改于: 2022-03-11 14:45:15.721000             🧑  作者: Mango

代码示例3
import datetime
today = datetime.date.today()
one_day = datetime.timedelta(days=1)
yesterday = today - one_day