Python - Flatten a dict of lists into unique values?

后端 未结 7 2228

I have a dict of lists in python:

content = {88962: [80, 130], 87484: [64], 53662: [58,80]}

I want to turn it into a list of the unique val

相关标签:
7条回答
  • 2020-12-30 23:25
    sorted(set(sum(content.values(), [])))
    
    0 讨论(0)
提交回复
热议问题