📜  如何从日期中减去一天? - Python 代码示例

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

代码示例1
from datetime import datetime, timedelta
    
d = datetime.today() - timedelta(days=days_to_subtract)