Python 修改字典的 key HenryZ 2021-11-19 更新于 2022-11-21 目录 dictionary[new_key] = dictionary.pop(old_key) .pop() 将 Key-Value 条目取出(从字典中删除并返回该条目) 参考文章: Change the name of a key in dictionary Please enable JavaScript to view the comments powered by giscus.