kuroko/test/testDictComprehension.krk
2021-01-19 21:06:52 +09:00

5 lines
98 B
Python

let d = {'a': 1, 'b': 2, 'c': 3}
let dInverted = {v: k for k, v in d.items()}
print(d,dInverted)