摘要: ```py from sqlalchemy import func message_count = self.db.query(func.count(Message.uid)).filter(Message.uid == self.uid, Message.msg_readstatus == MessageStatus.un_read.value).scalar() ``` 阅读全文
posted @ 2017-02-13 17:54 CooMark 阅读(6264) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/codingmylife/archive/2013/05/31/3110656.html python 3.4+ 阅读全文
posted @ 2017-02-13 09:21 CooMark 阅读(720) 评论(0) 推荐(0)