用python更新实体值GAE

时间:2013-03-09 09:28:44

标签: google-app-engine

class UserData(db.Model):
    user_name = db.StringProperty()
    pass_word = db.StringProperty() 
    points = db.IntegerProperty()

如果我想更新“积分”实体怎么办?阅读谷歌文档,发现没有运气。

1 个答案:

答案 0 :(得分:2)

我认为你很难搜索/阅读文档。

https://developers.google.com/appengine/docs/python/datastore/overview#Python_Datastore_API

讨论如何使用和创建/更新实体。

基本API文档也详细介绍

模型类文档甚至会告诉你

https://developers.google.com/appengine/docs/python/datastore/modelclass