📜  django 模板中的计数器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:07.100000             🧑  作者: Mango

代码示例1
{{ forloop.counter }}   ->  The current iteration of the loop (1-indexed)
{{ forloop.counter0 }}  ->  The current iteration of the loop (0-indexed)