{% for item in item_list %}
{{ forloop.counter }} {# starting index 1 #}
{{ forloop.counter0 }} {# starting index 0 #}
do your stuff
{%endfor%}
<!-- 题目 01-->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">{{ forloop.counter }} .{{item.tigan}}</h3>
</div>
<div class="panel-body">
<div style="margin-left:10px">
<label class="radio"><input type="radio" name="gender" value="0">男</input></label>
<label class="radio"><input type="radio" name="gender" value="1">女</input></label>
<label class="radio"><input type="radio" name="gender" value="2">其他</input></label>
</div>
</div>
</div>
<!-- 题目 01 end-->
{% endfor %}