models.py 文件源码

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

项目:hb 作者: saks 项目源码 文件源码
def left_average_per_day(self):
        days = monthrange(date.today().year, date.today().month)[1]
        rest_days = days - date.today().day + 1  # we need to take into account spendings for today
        return (self.left/rest_days).quantize(Decimal('.01'), rounding=ROUND_DOWN)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号