使用copy時報錯
Traceback (most recent call last):
File "D:/testing/python/copy.py", line 1, in <module>
import copy
File "D:/testing/python\copy.py", line 4, in <module>
b = copy.copy(a)
TypeError: 'module' object is not callable
在使用copy時報錯,原因是自己的.py的文件命名爲copy.py與import進來的copy文件衝突了
解決方法:將自己的py文件名改了就行