Django Book 翻译
菜单>:
TOC
返回
原文:
``forloop.revcounter`` is always set to an integer representing the number of remaining items in the loop. The first time through the loop, ``forloop.revcounter`` will be set to the total number of items in the sequence youre traversing. The last time through the loop, ``forloop.revcounter`` will be set to ``1`` .
翻译:
``forloop.revcounter`` 是表示循环中剩余项的整型变量。在循环初次执行时 ``forloop.revcounter`` 将被设置为序列中项的总数。最后一次循环执行中,这个变量将被置1。
备注:
译者: