📅  最后修改于: 2022-03-11 14:45:55.072000             🧑  作者: Mango
import datetime
from dateutil.relativedelta import relativedelta
last_year = (datetime.datetime.now()-relativedelta(years=1)).strftime("%Y-%m-%d")