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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment