替换python字典中的key值方法

好比下列方案spa

a = {"a":1} #变成
a = {"b":1} #方法
a["b"]=a.pop("a")

即:在保留value不变的状况下,替换key值.net

相关文章
相关标签/搜索