Shortcuts in Science
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
‹
›
Home
View web version
No comments:
Post a Comment