graphs.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:ccvpn3 作者: CCrypto 项目源码 文件源码
def time_filter_between(period, m, df):
    def _filter(o):
        if period == 'm':
            return df(o).year == m.year and df(o).month == m.month and df(o).day == m.day
            return df(o).date() <= m and df(o).date() > (m - timedelta(days=1))
        if period == 'y':
            return df(o).year == m.year and df(o).month == m.month
            return (df(o).date().replace(day=1) <= m and
                    df(o).date().replace(day=1) > (m - timedelta(days=30)))
    return _filter
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号