We can use the deepcopy() function from the copy module to create such copies. For example,. 1. 2. 3. 4. 5. 6. import copy. d1 = {'a':1,'b':2,'c':3}. d2 = copy.
確定! 回上一頁