import datetime
date = datetime.date(2021, 11, 26)
friday = 4 # 周五的weekday是4, 周日到周六依次为0,1,2,3,4,5,6
this_friday = date + datetime.timedelta(friday - date.weekday())
last_friday = date - datetime.timedelta(7 - friday + date.weekday())
next_friday = date + datetime.timedelta(7 + friday - date.weekday())
10-21
1927
05-10
1435