arrays - 在python中生成嵌套的Json
问题描述
我需要阅读一个表格,它会给我如下结果:
empid|name|age|Skills|proficiency
1|abc|25|java|beginner
1|abc|25|sql|expert
并在其中包含字典的数组中生成以下 json EMP 信息。如何在python中做到这一点?
{
"empid" :1
"name":abc
"age":25
"Empinfo" :[ {
"Skill" :"java",
"proficiency" :"beginner"
},
{
"Skill" :"sql",
"proficiency" :"expert"
},
]
}
解决方案
推荐阅读
- arrays - Excel VBA 在 50k+ 行数据上执行 While 循环,处理 30+ 分钟
- javascript - 使用 Web 应用程序创建大文件并将其写入磁盘
- java - 为什么 Intellij 在切换到新的更改列表时会进入空白页面?
- dotnet-httpclient - 使用 HttpClient 发送自定义数据类型列表
- angular - 离子菜单跟踪/收听 IsOpen 属性
- ios - PrimeFaces 文件上传在 Apple IOS 11.4.1 上不起作用
- angularjs - 带有对话框的Angularjs复杂查找指令
- c++ - 为什么 T::T::T::T::T::T 与 T 相同的类名?
- css - CSS :last-child 和 ::after
- html-table - Bootstrap 4:在隐藏多个单元格时避免破坏表格