यहाँ है कोड मैं:मैं ऑब्जेक्ट कैसे उठा सकता हूं?
import pickle
alist = ['here', 'there']
c = open('config.pck', 'w')
pickle.dump(alist, c)
और इस त्रुटि मैं प्राप्त है:
Traceback (most recent call last):
File "C:\pickle.py", line 1, in ?
import pickle
File "C:\pickle.py", line 6, in ?
pickle.dump(alist, c)
AttributeError: 'module' object has no attribute 'dump'
क्या चल रहा? मैं विंडोज़ xp
http://en.wikipedia.org/wiki/Pickling ... –
गलत साइट, http://cooking.stackexchange.com/ –