这一个Python列表迭代是我的字典:如何通过字典
[{'entity': 'first entity', 'place': ['first', 'second', 'abc']}, {'entity': 'second entity', 'place': ['awe', 'ert']}]
,我想打印的值是这样的:
-first entity
-first, second, abc
-second entity
-awe, ert
我尝试了很多东西,但我不不知道如何处理第二个键的列表
你能否也建议我如何在Django模板中做同样的事情?
在此先感谢
非常感谢斯内德!我知道你先回答,但@pinkdawn也显示了django模板的代码!再次感谢。 – Lucas