有字典,但字典里有字典。如何从“数据”中提取所有键并将它们放入单独的字典中
questionnaire = {
"appType":"value",
"step":"FULL",
"data":{
"amount":50000,
"period":36,
"loanPurpose":"ConstructionHouseroom",
}
}
有字典,但字典里有字典。如何从“数据”中提取所有键并将它们放入单独的字典中
questionnaire = {
"appType":"value",
"step":"FULL",
"data":{
"amount":50000,
"period":36,
"loanPurpose":"ConstructionHouseroom",
}
}
结果: