django模板for循环自增长变量 django 2016-04-12 阅读(2445) 1:{{forloop.counter}}:表示从1开始自增2:{{forloop.parentloop.counter}}:表示从自增是从父循环开始,用于嵌套循环 Tags: >django