📜  python更改字典中每个元素的类型 - Python代码示例

📅  最后修改于: 2022-03-11 14:47:10.636000             🧑  作者: Mango

代码示例1
d = {12345: 54321, 87654: 45678}

keys_values = d.items()

new_d = {str(key): str(value) for key, value in keys_values}

print(new_d)