Django Book 翻译
菜单>:
TOC
返回
原文:
``forloop.revcounter0`` is like ``forloop.revcounter`` , except its zero-indexed. The first time through the loop, ``forloop.revcounter0`` will be set to the number of elements in the sequence minus 1. The last time through the loop, it will be set to ``0`` .
翻译:
``forloop.revcounter0`` 类似于 ``forloop.revcounter`` ,但它以0做为结束索引。在第一次执行循环时,该变量会被置为序列的项的个数减1。在最后一次迭代时,该变量为0。
备注:
译者: