我正在使用带有 NDB 的 Google App Engine。为简洁起见,我删除了很多代码,但保留了基本问题。我收到一个错误'list' object has no attribute 'get_result'
def get_future(keys):
future = ndb.get_multi_async(keys)
important_value = ... # get important value
return {"future" : future, "value" : important_value}
dic = get_future(keys)
future = dic['future']
# error `'list' object has no attribute 'get_result'`
items = future.get_result()
当我应该得到一个未来时,为什么我会得到一个列表?