获取T-5天和T-1天日期

    def get_target_date():
        start_date = str(date.today() - timedelta(45))
        end_date = str(date.today() - timedelta(15))
        return start_date, end_date
原文地址:https://www.cnblogs.com/lnd-blog/p/14292048.html