w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Python - AttributeError: 'function' object has no attribute 'deepcopy'

I am facing the same problem, and tried many ways. The following way resolves my problem: change

import copy
dict = {...}
copy.deepcopy()

to

from copy import deepcopy
dict = {...}
deepcopy()




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.