{% for act in act_list %}
a = act['key'] #无法通过这种情况取到value
{%endfor%}
应该是 a = act.key 吧。在模板中用 . 号
@Only0ne 好像要使用with语句