def wallstreetcn_yesterday(): date_local_uf = datetime.date.today() date_yes_uf = date_local_uf + datetime.timedelta(days = -1) date_yes = date_yes_uf.strftime("%Y年%m月%d日") header = "华尔街见闻--%s"%date_yes header = unicode(header,'utf-8') items = wsjcn_whichday(date_yes) return render_template('index.html',header=header, items = items)
def wallstreetcn(): date_local_uf = datetime.date.today() date_local = date_local_uf.strftime('%Y年%m月%d日') #date_local = '2014年08月13日' header = "华尔街见闻--%s"%date_local header = unicode(header,'utf-8') items = wsjcn_whichday(date_local) return render_template('index.html',header=header, items = items)