📜  python 复制字典保持原样 - Python 代码示例

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

代码示例1
# Python never implicitly copies objects.
dict2 = dict(dict1)
# OR
dict2 = dict1.copy()