How to create a Python dictionary from data imported from a text file?

前端 未结 0 1528
天命终不由人
天命终不由人 2021-01-01 08:32

I have the following text in a file named \'my_text.txt\':

David: 2
Barbara: 97.2
David: nothing
William:

Lynn: 725
Nancy   : 87
     David:       54
Lewis:          


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