jinja2 怎样获取循环 {% for i in n %} 的索引

{% for i in n %}
当前是第 x 条
{% endfor %}

请问,这个第 x 条怎么获得?

阅读 24.8k
1 个回答
推荐问题