Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我把这段代码放在models.py我的 django 应用程序中:
models.py
import shelve s = shelve.open('mystorage')
一切正常,但是当解释器关闭时,我得到以下输出:
Exception TypeError: "'NoneType' object is not callable" in ignored