如何从数据存储中检索数据?

2024-04-25 15:04:43 发布

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

在googleappengine中,我们如何从数据存储中检索数据,并在其中使用list属性的一个元素作为参数?在


Tags: 数据元素参数属性listgoogleappengine
1条回答
网友
1楼 · 发布于 2024-04-25 15:04:43

如果我没看错:您需要检索包含该特定列表属性的整个元素(使用qgl查询或显式筛选),然后在该元素上访问该属性的属性名。在

另一种解读方式是:如果您希望某个元素的list属性包含某个值,则将该属性设置为“等于”所述值。正如the docs所说:

In a query, comparing a list property to a value performs the test against the list members: list_property = value tests if the value appears anywhere in the list

你是说这两件事中的一件,还是另一件我从你那晦涩难懂的话里猜不出来的?-)在

相关问题 更多 >