Django Book 翻译
菜单>:
TOC
返回
原文:
``forloop.counter`` is always set to an integer representing the number of times the loop has been entered. This is one-indexed, so the first time through the loop, ``forloop.counter`` will be set to ``1`` . Heres an example:
翻译:
``forloop.counter`` 总是一个表示当前循环的执行次数的整数计数器。这个计数器是从1开始的,所以在第一次循环时 ``forloop.counter`` 将会被设置为1。例子如下:
备注:
译者: