对象的保存:
import shelve
testdb = shelve.open('e:\bvtdb')
testdb['bvt'] = bvt
testdb.close()
提取对象:
import shelve
db = shelve.open('e:\bvtdb')
bvt = db['bvt']
builder = ReportBuilder(bvt)
对象的保存:
import shelve
testdb = shelve.open('e:\bvtdb')
testdb['bvt'] = bvt
testdb.close()
提取对象:
import shelve
db = shelve.open('e:\bvtdb')
bvt = db['bvt']
builder = ReportBuilder(bvt)