Py学习  »  Django

发现django的模板中无法通过key取value

Only0ne • 10 年前 • 3539 次点击  

{% for act in act_list %}

a = act['key']    #无法通过这种情况取到value

{%endfor%}

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/1109
 
3539 次点击  
文章 [ 2 ]  |  最新文章 10 年前