python,tonardo模板中for循环,获取index

  {% for index,subject in  enumerate(subjects) %}   使用enumerate函数

你可能感兴趣的:(python)