📜  python today - 1 day - Python 代码示例

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

代码示例1
from datetime import datetime, timedelta

yesterday = datetime.today() - timedelta(days = 1 )