>>import shelve
.... sf[str(i)]=i
....
{}
the abc.db is always 312k though i have use clear(), how can i shrink
the space?
>>sf = shelve.open('e:/abc.db')
>>for i in range(10000):
>>for i in range(10000):
....
>>sf.close()
>>sf = shelve.open('e:/abc.db')
>>sf.clear()
>>sf
>>sf = shelve.open('e:/abc.db')
>>sf.clear()
>>sf
the abc.db is always 312k though i have use clear(), how can i shrink
the space?
Comment