python datetime加減

now = datetime.datetime.now() addda = datetime.timedelta(days=1) newday = now+days print newday.strftime('%Y-%m-%d %H:%M:%S')
相關文章
相關標籤/搜索