相关疑难解决方法(0)

更新应用引擎实体

如何更新应用引擎中的现有记录.

python google-app-engine

4
推荐指数
1
解决办法
6102
查看次数

在Google云数据存储区python中更新实体的一个属性

如何仅更新Google云数据存储中实体的一个属性,而不删除所有其他属性?

key = client.key('employee', ID)
employee_to_deactivate = datastore.Entity(key)
employee_to_deactivate.update({
    'active':False,
})
Run Code Online (Sandbox Code Playgroud)

这会将活动属性更新为False,但会删除所有其他属性.

python google-app-engine google-cloud-datastore

2
推荐指数
1
解决办法
2837
查看次数