utils.py 文件源码

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

项目:cloudhealth-client 作者: cloudify-cosmo 项目源码 文件源码
def _get_last_month():
    current = date.today()
    if current.day == 31:
        return date(current.year, current.month-1, (calendar.monthrange(current.year, current.month-1)[1])).strftime('%Y-%m')
    else:
        return date(current.year, current.month-1, current.day).strftime('%Y-%m')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号