1 回答
TA贡献1784条经验 获得超8个赞
这只是循环遍历所有各种字典和列表的问题:
>>> data=[{'f': [{'@id': '6', '#text': 'Application Review'}, {'@id': '7', '#text': 'final demo'}, {'@id': '8', 'url': '', '#text': 'Sample Document.docx'}, {'@id': '3', '#text': '3'}], 'update_id': '1598972807556'}, {'f': [{'@id': '6', '#text': 'Track Record data'}, {'@id': '7', '#text': 'Track Record data'}, {'@id': '8', 'url': '', '#text': 'Testing Guidelines-QuickBase.docx'}, {'@id': '3', '#text': '1'}], 'update_id': '1597820400040'}]
>>> print('\n'.join([e['#text'] for d in data for e in d['f']]))
Application Review
final demo
Sample Document.docx
3
Track Record data
Track Record data
Testing Guidelines-QuickBase.docx
1
添加回答
举报