query_helpers.py 文件源码

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

项目:sbds 作者: steemit 项目源码 文件源码
def trailing_windows(window_size=24, window_units='hours', window_count=3):
    """

    Args:
        window_size (int):
        window_units (str):
        window_count (int):

    Yields:
        Dict[str,str]

    """
    tos, froms = tee(trailing_periods(window_size, window_units, window_count))
    next(froms, None)
    for to, _from in zip(tos, froms):
        yield {'_from': _from, 'to': to}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号