1 回答

TA貢獻1784條經(jīng)驗 獲得超8個贊
這只是循環(huán)遍歷所有各種字典和列表的問題:
>>> 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
添加回答
舉報