sqlAlchemy映射器未定义

2024-10-03 11:22:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我收到以下错误消息:

Traceback (most recent call last):
File "alchemyTest.py", line 12, in <module>
planetMapper = mapper(Planet, planet)
NameError: name 'mapper' is not defined

我的SQLAlchemy版本是1.0.12。我使用以下代码:

^{pr2}$

我已经在网上搜索,并没有找到任何地图上没有定义。感谢任何帮助。在


Tags: inpy消息most错误linecallfile