Python: convert a list of lists into a Dictionary using comprehension

后端 未结 0 910
说谎
说谎 2020-12-12 19:42

I want to get the output of lsblk into a dictionary with dev name as key. My current solution is:

cmd_line = "lsblk -rno NAME,SIZE,MOUNTPOIN         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题