Django中字典在html中的遍历如:在view中定义的函数info = {'xiaofang': '', 'xiaoming': ''} context = {"info": info}要在html中变量出info的信息(注意info.items,千万不能漏了items){% for info_name,info_age in info.items %} {{ info_name }} {{ info_age }} {% endfor %}