python 字典 1.如何交换字典 {"A":1,"B":2}的键和值? n = {1: "a", 2: "b"} new = {v: k for k, v in n.items()} print(new) 2.