【发布时间】:2019-02-08 11:30:32
【问题描述】:
需要结合List中的值作为表格的一部分显示,使用flask、bootstrap和python。我已经打印了名字和姓氏,但我不知道如何组合这些值来打印。
我已经打印了名字和姓氏,但我不知道如何组合这些值来打印需要打印,如图所示
作为图像添加的 Python 代码
<table class="table">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Full Name</th>
</tr>
</thead>
<tbody>
{% for i in range(0,ln) %}
<tr>
{% for j in users[i] %}
<td>{{ users[i][j] }}</td>
{% endfor %}
<td>-</td>
</tr>
{% endfor %}
</tbody>
</table>
【问题讨论】: