How do you put contents of a file into a nested dictionary?

前端 未结 0 1718
清酒与你
清酒与你 2020-12-10 05:36

if my file looks like:

a
b
c
END
f
e
END

Then how can I put the contents of the file in a nested dictionary in python like this: {a:{b,c}, f:

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