# -*- coding: utf-8 -*-

from datetime import timedelta


def get_tuesday(dt):
    # 获取参数所在周的周二
    wd = dt.weekday()
    if wd == 0:
        return (dt + timedelta(days=1)).date()
    else:
        return (dt - timedelta(days=wd - 1)).date()

97028c9262815243f3c4202060b07428e382111c
<mask token>

<mask token>


def get_tuesday(dt):
    wd = dt.weekday()
    if wd == 0:
        return (dt + timedelta(days=1)).date()
    else:
        return (dt - timedelta(days=wd - 1)).date()

from datetime import timedelta


def get_tuesday(dt):
    wd = dt.weekday()
    if wd == 0:
        return (dt + timedelta(days=1)).date()
    else:
        return (dt - timedelta(days=wd - 1)).date()

# -*- coding: utf-8 -*-

from datetime import timedelta


def get_tuesday(dt):
    # 获取参数所在周的周二
    wd = dt.weekday()
    if wd == 0:
        return (dt + timedelta(days=1)).date()
    else:
        return (dt - timedelta(days=wd - 1)).date()
