Python
- 10 ответов
- 0 вопросов
2
Вклад в тег
names = []
contacts = resp['data']['user']['contact_list']
for contact in contacts:
contact_name = contact['name']
friends_names = [x['name'] for x in contact['friends']]
names.append(contact_name)
names.extend(friends_names)