Mic*_*zcz 41
只要实体定义了一个键,它就会更新put():
record = Record(value='foo')
# This creates a new record
record.put()
record.value = 'shmoo'
# This updates it
record.put()
key = record.key()
record2 = Record.get(key)
record2.value = 'bar'
# Yet again this updates the same record
record2.put()Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6102 次 |
| 最近记录: |