国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

python - 調用api輸出頁面,會有標簽出現,請問如何清掉?

瀏覽:90日期:2022-06-27 18:45:32

問題描述

調用api輸出資料,會有標簽的出現,見截圖。請問如何清除?

python - 調用api輸出頁面,會有標簽出現,請問如何清掉?

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

@app.route(’/search4’, methods=[’POST’])def do_search() -> ’html’: hero_name = request.form[’input_hero_name’] output_prompt_error = ’請輸入正確的英雄名’ dict_hero = get_dict_hero(hero_name) if ’error’ in dict_hero:return render_template(’entry.html’, the_entry_title=’英雄聯盟英雄信息’, 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’], )

問題解答

回答1:

{{變量|safe}}

標簽: Python 編程
主站蜘蛛池模板: 铜鼓县| 凤山市| 淅川县| 互助| 鄄城县| 霍邱县| 西藏| 北辰区| 卢龙县| 乌兰浩特市| 思茅市| 张家界市| 潼南县| 光泽县| 安丘市| 达尔| 巧家县| 城步| 台北市| 白沙| 西乌珠穆沁旗| 夹江县| 广丰县| 洪泽县| 东乌珠穆沁旗| 许昌市| 安泽县| 舒兰市| 定西市| 阿克陶县| 天津市| 绵竹市| 淳安县| 双柏县| 时尚| 漯河市| 内乡县| 漳浦县| 红原县| 雷山县| 洛隆县|