# -*- coding: utf-8 -*-

import datetime
import time

# get date
today = datetime.date.today()
print today

oneday = datetime.timedelta(days=1)
yesterday = today - oneday
print yesterday

tomorrow = today + oneday
print tomorrow

标签: Python

添加新评论