我用这个guide为SQLAlchemy编写了一个session_scope
。当我运行代码时,我得到一个AttributeError
异常:
Traceback (most recent call last):
File "/Users/tuanchauict/workspace/opla-manga/python-server-non-django/demo.py", line 56, in <module>
with session_scope() as s:
AttributeError: __exit__
我的代码是:
^{pr2}$我在macos10.10上运行python3.4。在
目前没有回答
相关问题 更多 >
编程相关推荐