Python获取本周指定的星期几
https://www.cnblogs.com/iAmSoScArEd/p/16386216.html 我超怕的
获取本周星期一
import datetime print(datetime.date.today()-datetime.timedelta(days=datetime.date.today().weekday()))
获取本周星期二
import datetime print(datetime.date.today()-datetime.timedelta(days=datetime.date.today().weekday()-1))
获取本周星期三
import datetime print(datetime.date.today()-datetime.timedelta(days=datetime.date.today().weekday()-2))
后面以此类推
俗人昭昭,我独昏昏。俗人察察,我独闷闷。