Wednesday, 11 July 2018

Python Dictionary ShallowCopy and DeepCopy

a_dict = dict.copy() # shallow copy

from copy import deepcopy
b_dict = deepcopy(dict) # deep copy

No comments:

Post a Comment