Creating a nested dictionary from a CSV file with Python

前端 未结 0 899
情歌与酒
情歌与酒 2021-02-11 11:30

I have a a csv file \"input.csv\" which has the following data.

UID,BID,R
U1,B1,4
U1,B2,3
U2,B1,2

I want the above to look like the following d

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