Dans une liste, l'ajout est possible. Mais comment j'atteins l'ajout dans le dictionnaire?Liste un dictionnaire
Symbols from __ctype_tab.o:
Name Value Class Type Size Line Section
__ctype |00000000| D | OBJECT|00000004| |.data
__ctype_tab |00000000| r | OBJECT|00000101| |.rodata
Symbols from _ashldi3.o:
Name Value Class Type Size Line Section
__ashldi3 |00000000| T | FUNC|00000050| |.text
Symbols from _ashrdi3.o:
Name Value Class Type Size Line Section
__ashrdi3 |00000000| T | FUNC|00000058| |.text
Symbols from _fixdfdi.o:
Name Value Class Type Size Line Section
__fixdfdi |00000000| T | FUNC|0000004c| |.text
__fixunsdfdi | | U | NOTYPE| | |*UND*
Comment puis-je créer un dictionnaire comme:
dictOfTables {'__ctype_tab.o':{'__ctype': Name:...,Value:...,Class:...,Type:...,Size:...,Line:...,Section:...}} etc.
pour le texte ci-dessus?
La dict finale ressemblerait à ceci: {'_ashrdi3.o': {'Section': '.text', 'Valeur': '00000000', 'Ligne': '', 'Type': 'FUNC ',' Class ':' T ',' Size ':' 00000058 '}}, ' _ashldi3.o ': {' Section ':' .text ',' Valeur ':' 00000000 ', 'Ligne': '', 'Type': 'FUNC', 'Classe': 'T', 'Taille': '00000050'}}, '_fixdfdi.o': {'__fixdfdi': {'Section': '.text', 'Value': '00000000', 'Ligne': '', 'Type': 'FUNC', 'Classe': 'T', 'Taille': '0000004c'}, '__fixunsdfdi': {'Section': '* UND *', 'Valeur' : '', 'Ligne': '', 'Type': 'NOTYPE', 'Classe': 'U', 'Taille': ''}}} – flight