python read file (or string) into dictionary by first separator only

前端 未结 0 1677
暗喜
暗喜 2021-01-11 22:46

I need to read a file into a dictionary but it contains more than one separator:

AGE 32
JOB clerk
NAME Bob Young

should become



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