参考:https://blog.csdn.net/a1007720052/article/details/81542134 d = {'a': 1, 'b': 2} d["c"] = d.pop("a") print(d)