国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

python - 調(diào)用api輸出頁面,會(huì)有標(biāo)簽出現(xiàn),請(qǐng)問如何清掉?
ringa_lee
ringa_lee 2017-06-22 11:52:23
0
1
1020

調(diào)用api輸出資料,會(huì)有
標(biāo)簽的出現(xiàn),見截圖。請(qǐng)問如何清除?

在做一個(gè)表單,以下是輸出頁面的代碼

@app.route('/search4', methods=['POST'])
def do_search() -> 'html':
    hero_name = request.form['input_hero_name']
    output_prompt_error = '請(qǐng)輸入正確的英雄名'
    dict_hero = get_dict_hero(hero_name)
    if 'error' in dict_hero:
        return render_template('entry.html',
                               the_entry_title='英雄聯(lián)盟英雄信息',
                               the_output_prompt_error=output_prompt_error,
                               )
    else:
        return render_template('results.html',
                               the_name=hero_name,
                               output_skill_passive_name = dict_hero['data'][0]['passive']['name'],
                               output_skill_passive_description = dict_hero['data'][0]['passive']['description'],
                               output_skill_1_name = dict_hero['data'][0]['spells'][0]['name'],
                               output_skill_1_tooltip = dict_hero['data'][0]['spells'][0]['tooltip'],
                               output_skill_2_name = dict_hero['data'][0]['spells'][1]['name'],
                               output_skill_2_tooltip = dict_hero['data'][0]['spells'][1]['tooltip'],
                               output_skill_3_name = dict_hero['data'][0]['spells'][2]['name'],
                               output_skill_3_tooltip = dict_hero['data'][0]['spells'][2]['tooltip'],
                               output_skill_4_name = dict_hero['data'][0]['spells'][3]['name'],
                               output_skill_4_tooltip = dict_hero['data'][0]['spells'][3]['tooltip'],
                               )
ringa_lee
ringa_lee

ringa_lee

全部回復(fù)(1)
Peter_Zhu

雷雷

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板