当我尝试使用"LIKE %s“从我的烧瓶应用程序中的数据库中检索AttributeError("'list‘object没有属性’键‘”)时,我对烧瓶和python很陌生,但是如果我使用占位符"titlesqlalchemy/engine/base.py", line 1028, in _execute_clauseelementAttributeError
Users/user/PycharmProjects/MyDevWork/PygamesRelated/game_1.py", line 29, in <module>AttributeError: 'Event' object has no attribute 'key'import pygame
pygame.init== pygame.
AttributeError:'Key‘对象没有属性’删除‘
如果我使用的是更新0,而不是pin.delete(),我会看到两个80个字符串,我假设这两个字符串是2键。但我不知道怎么用钥匙来删除。更新2基于@jccampanero的建议修改的代码是有希望的,但到目前为止在isinstance中失败了,因为它的论点是Model和Key。但是,当我用Model替换Pin时,我得到了错误NameError: global name 'Key'
linux-x86_64.egg/matplotlib/__init__.py", line 1149, in rc_params_from_file File "/usr/local/lib/python3.5/site-packages/matplotlibg888bf17-py3.5-linux-x86
0.8.1-py2.7.egg/south/utils/__init__.py", line 38, in get_attributeAttributeError: 'TaggableManager' object has no attribute 'primary_key'from django.db import