:
1001
,
"iohn"
:
1003
,
"kate"
:
1002
}
rd
= reverse_dict(d)
print(
rd
)
.
< !- - - - - >
Write a reverse dict(
that crosses the key and value values of the
dictionary(not allowed to repeat) and output the contents of the new dictionary in descending order by
. The
platform tests your code: Test input :
Please enter a dictionary: {"alice" : 1001,
"iohn":
1003,
uukate" : 10021 Expected output: 1ee3 iohn 1ee2
kate lee1 alice
0 Answer
这家伙很懒,什么都没留下...