2

我想使用结构化属性并创建了一个非常简单的示例。

class StudentScore(EndpointsModel):
  name = ndb.StringProperty()
  mark = ndb.StringProperty()

class MyModel(EndpointsModel):
  scores = ndb.StructuredProperty(StudentScore)

但是,尝试放置()时出现错误。

AttributeError:“StudentScore”对象没有属性“_Message__decoded_fields”

4

0 回答 0