您的值是列表,因此添加列表理解:
{k.lower(): [i.lower() for i in v] for k, v in result.items()}
演示:
>>> result = {'John greased ': ['Axle', 'wheel', 'wheels', 'wheel', 'enGine', ''],
... 'Maria testa': ['teste', 'teste', '', '', '', ''],
... 'Paul alleged ': ['truth', 'crime', 'facts', 'infidelity', 'incident', ''],
... 'Tracy freed ': ['animals', 'fish', 'slaves', 'slaves', 'slaves', 'pizza'],
... 'Lisa plowed ': ['field', 'Field', 'FIELD', 'bola', '', '']}
>>> {k.lower(): [i.lower() for i in v] for k, v in result.items()}
{'lisa plowed ': ['field', 'field', 'field', 'bola', '', ''], 'tracy freed ': ['animals', 'fish', 'slaves', 'slaves', 'slaves', 'pizza'], 'paul alleged ': ['truth', 'crime', 'facts', 'infidelity', 'incident', ''], 'maria testa': ['teste', 'teste', '', '', '', ''], 'john greased ': ['axle', 'wheel', 'wheels', 'wheel', 'engine', '']}
>>> from pprint import pprint
>>> pprint({k.lower(): [i.lower() for i in v] for k, v in result.items()})
{'john greased ': ['axle', 'wheel', 'wheels', 'wheel', 'engine', ''],
'lisa plowed ': ['field', 'field', 'field', 'bola', '', ''],
'maria testa': ['teste', 'teste', '', '', '', ''],
'paul alleged ': ['truth', 'crime', 'facts', 'infidelity', 'incident', ''],
'tracy freed ': ['animals', 'fish', 'slaves', 'slaves', 'slaves', 'pizza']}