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