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????????????????????"
评论列表
文章目录