开发者

python list getting element in django

I am trying to get the only element in a python list of dictionary. If I do:

开发者_开发知识库{{k.value}}

I get

[{'value_type': 2L, 'value_as_double': 74.0}]

How do I get just the 74?


Try {{ k.value.0.value_as_double }}.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜