烧瓶在预览时不显示表格内容

时间:2018-05-15 03:05:50

标签: flask jinja2

代码是:

def get_case():
    ...
    table_step = zip(li_host,li_cmd)
    return render_template('auto.html',table_step = table_step)

html是:

{% for row in table_step %}
<tr>
  <td>{{ row[0]|safe }}</td>
  <td>{{ row[1]|safe }}</td>
  <td><button type="button" class="btn btn-default"> 编辑 </button></td>
</tr>
{% endfor %}

enter image description here

实际页面显示没有内容:

enter image description here

0 个答案:

没有答案