stream.py 文件源码

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

项目:Qkou_kit 作者: pddg 项目源码 文件源码
def get_news(id):
    sys.stdout = codecs.lookup('utf_8')[-1](sys.stdout)
    try:
        news = id_news(id)
    except Exception as e:
        log.exception(e)
    if news is not False:
        if news is not 0:
            try:
                update = news.up_date.decode('utf-8')
                detail = news.detail.decode('utf-8')
                if len(news.link) is not 0:
                    link_ = news.link.decode('utf-8')
                    return u"???:%s\n??:%s\n???:%s" % (update, detail, link_)
                else:
                    return u"???: %s\n??: %s" % (update, detail)
            except Exception as e:
                log.exception(e)
        else:
            return u"?????????????????????"

    else:
        return u"DB????????????????????"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号