📜  python 添加月份日期时间 - Python 代码示例

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

代码示例1
from datetime import datetime
from dateutil.relativedelta import relativedelta
    
date_after_month = datetime.today()+ relativedelta(months=1)
print 'Today: ',datetime.today().strftime('%d/%m/%Y')
print 'After Month:', date_after_month.strftime('%d/%m/%Y')