CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
Home
>
Back-end
> Python dictionary form transformation
Python dictionary form transformation
Time:11-04
1. The dictionary conversion
D1={' A ', 1, 'B.A: 2,' B.B: 3, 'CC. D.E: 4,' CC. D.F: 5}
Define a function to d1 into the following format:
{' A ': 1,
'B' : {' A ': 2,
'B' : 3},
'CC' : {' D ': {
'E' : 4,
'F' : 5
}}
}
Page link:
https//www.codepudding.com/Backend/77135.html
Prev:
There are people in C Builder6.0 not?
Next:
C class type, how to destructor and parameters of the object?
Tags:
The base class
Related
Links:
CodePudding