import datetime
today_date = datetime.date.today()
fist_day_of_last_month = datetime.date(today_date.year, today_date.month - 1, 1)
last_day_of_last_month = datetime.date(today_date.year, today_date.month, 1) - datetime.timedelta(1)
正文完