我有一本字典要迭代,我把它打印在我的网页上,得到了这个:
dict = {
u'256': <itertools._grouper object at 0x8361d0e90>,
u'59': <itertools._grouper object at 0x83607c110>,
u'59': <itertools._grouper object at 0x83607c050>,
u'1975555': <itertools._grouper object at 0x8361bc490>,
u'91': <itertools._grouper object at 0x836162110>
}
如何在字典中访问此对象的值?这是我尝试过的东西:
{% for code, codelist in dict.items %}
{% for innerlists in codelist %}
// Here I want to display the values in the dict's object
{% endfor %}
{% endfor %}