擅长:python、mysql、java
<p>来回答我自己的问题
我在python代码中使用了zip实用程序,因为在flask中没有zip</p>
<pre><code>function returncodes()
-
-
return zip(codes,codeNames) # in my case
</code></pre>
<p>烧瓶模板没有变化</p>
^{pr2}$
<p>现在在我的结果.html在</p>
<pre><code>{% for keys,keys2 in result1 %}
<tr class="even"><td>{{keys}}</td><td>{{keys2}}</td></tr>
{% endfor %}
</code></pre>