import datetime
def get_date_of_last_week():
"""
获取上周开始结束日期
:return: str,date tuple
"""
today = datetime.date.today()
begin_of_last_week = (today - datetime.timedelta(days=today.isoweekday() + 7)).strftime('%Y-%m-%d')
end_of_last_week = (today - datetime.timedelta(days=today.isoweekday() + 1)).strftime('%Y-%m-%d')
return begin_of_last_week, end_of_last_week