2 afei2ting afei2ting 于 2014.08.31 11:35 提问

python建立sqlite表格出错,新手问题
>>> engine = create_engine('sqlite:///./yanf.db',echo=True)

metadata = MetaData(engine)
users_table=Table('users',metadata,
... Column(id,Integer,primary_key=True),
... Column('name',String(40)),
... Column('email',String(40)))
Traceback (most recent call last):
File "", line 2, in
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 1092, in init
self._init_items(*args)
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 72, in _init_items
item._set_parent_with_dispatch(self)
AttributeError: 'builtin_function_or_method' object has no attribute '_set_parent_with_dispatch'

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!