📜  前天python datetime - Python代码示例

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

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