Python 修改字典的 key
目录
dictionary[new_key] = dictionary.pop(old_key)
.pop()
将 Key-Value 条目取出(从字典中删除并返回该条目)
参考文章:
阿里云百炼大模型
9折优惠 + 所有模型各百万免费Token →
dictionary[new_key] = dictionary.pop(old_key)
.pop()
将 Key-Value 条目取出(从字典中删除并返回该条目)
参考文章: