datetime.timedelta(days=10) # 可以
datetime.timedelta(months=1) # 不可以
替代:
from datetime import datetime from dateutil.relativedelta import relativedelta print datetime.now() + relativedelta(months=1)