1.for
{% for k,v in user.items() %}
<p>{{k}}:{{v}}</p>
{% endfor %}
{%for a in user.keys()%}
<p>{{a}}</p>
{%endfor%}
{%for b in user.values()%}
<b>{{b}}</b>
{%endfor%}
{%for website in websites%}
<b>{{website}}</b>
{%endfor%}
1.for
{% for k,v in user.items() %}
<p>{{k}}:{{v}}</p>
{% endfor %}
{%for a in user.keys()%}
<p>{{a}}</p>
{%endfor%}
{%for b in user.values()%}
<b>{{b}}</b>
{%endfor%}
{%for website in websites%}
<b>{{website}}</b>
{%endfor%}
本文标题:flask 渲染代码存放
本文链接:https://www.haomeiwen.com/subject/lwedhqtx.html
网友评论