【发布时间】:2011-01-19 00:01:06
【问题描述】:
我建立了一个这样的字典列表
lst = [{'name': nameobj, Classobj1: "string", Classobj2: "string"}, \
{'name': nameobj, Classobj1: "string", Classobj2: "string"}]
我正在使用
for dic in lst:
for k,v in dic: # here is the line has probloem! What it happens?
#process
错误信息就像“类名”对象不可迭代。
【问题讨论】:
标签: python django list dictionary