写法一
index.html,变量的使用只能在with语句块里面
Title {% with zs=persons.0%} -------注意这里面“=”前后不能有空格
{{ zs }}
{{ zs }}
{{ zs }}
{% endwith %}
写法2
Title {% with zs=persons.0%}
{{ zs }}
{{ zs }}
{{ zs }}
{% endwith %} {% with persons.1 as ls %} -------第二种写法
{{ ls }}
{% endwith %}