안녕하세요, python 관련 질문드립니다.
아래와 같은 3개의 list가 있습니다.
A = ['AA/AA', 'BB/BB', 'CC/CC']
B = [
[{'web_links': [{'name': 'hi'}], 'ref': '**hello1**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello2**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello3**',},
{'web_links': [{'name': 'hi'}], 'ref': '**hello4**'}],
[{'web_links': [{'name': 'hi'}], 'ref': '**hello1**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello2**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello3**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello4**'}],
[{'web_links': [{'name': 'hi'}], 'ref': '**hello1**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello2**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello3**'},
{'web_links': [{'name': 'hi'}], 'ref': '**hello4**'}]
]
C = [
[{'created': '2020-01-23 04:32:45.000000000'}], 'ref': '**initial**'}],
[{'created': '2020-01-23 04:32:45.000000000'}], 'ref': '**initial**'}],
[{'created': '2020-01-23 04:32:45.000000000'}], 'ref': '**initial**'}]
]
여기서 for 문을 이용하여
['AA/AA', 'hello1, hello2, hello3, hello4', 'initial']
['BB/BB', 'hello1, hello2, hello3, hello4', 'initial']
['CC/CC', 'hello1, hello2, hello3, hello4', 'initial']
이런식으로 구분해서 각각의 list에 넣으려 하는데 생각처럼 잘 안되네요, 혹시 조언을 구할 수 있을까 해서 이렇게 글을 남깁니다.