【发布时间】:2020-05-27 16:44:36
【问题描述】:
我的代码如下:
class sample(ndb.Model):
text=ndb.StringProperty()
class sample2(webapp2.RequestHandler):
def get(self, item):
q = sample.query()
q1 = query.filter(item in sample.text)
我想在示例中的文本中搜索特定的单词(项目)。我该怎么做?我试过这个链接,但它并没有真正回答我的问题-How do I get the value of a StringProperty in Python for Google App Engine?
【问题讨论】:
标签: python string python-2.7 google-app-engine webapp2