我从firebase获得JSON(简化):
logitems = {
u'-K7w56QCnpYI': { u'Date': 1452707179865.0618, u'Message': 'messagetest1' },
u'-K7w56safnpYI': { u'Date': 1452707179867.0618, u'Message': 'messagetest2' },
u'-FSDFSDddsfsI': { u'Date': 1452707179868.0618, u'Message': 'messagetest3' },
}
如何迭代项目(用密钥存储在数组中)?
答案 0 :(得分:1)
答案 1 :(得分:0)
正确答案来自Rogalski的评论:
for v in logitems.values()? .itervalues() for Py2