标签: python django shelve
我把这段代码放在我的django应用程序的models.py中:
models.py
import shelve s = shelve.open('mystorage')
一切正常,但是当解释器关闭时,我得到以下输出:
Exception TypeError: "'NoneType' object is not callable" in ignored