python - entity.put() 和entity.save() 有什么区别?

标签 python google-app-engine google-cloud-datastore

我在 gae manpages 中看到entity.save() 没有太多文档记录,但仍然可以使用。 entity.put()entity.save() 之间有什么区别?是否应该永远不使用 save() 而只使用 put()

最佳答案

save 只是 put 的同义词。源码中定义如下:

save = put

查看 source code用于保存

关于python - entity.put() 和entity.save() 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16972294/

相关文章:

python sqlalchemy动态获取列名?

python - Flask 应用程序停止使用 gunicorn 和主管与数据库通信

mysql - 从 GAE 连接在 Compute Engine 实例上运行的 mysql 服务器

Python:运行使用 PyInstaller 制作的可执行文件时没有名为 'bottle-websocket' 的模块,包括 Eel 模块

Linux 错误上的 Python 3.6 tkinter 窗口图标

java - 部署时我的一种云端点方法出现 500 Internal Server Error

java - 谷歌应用引擎 : custom authentication

python - GAE 数据存储查询 ConjunctionNode 错误

java - 如果我知道 ID,如何通过其唯一 ID 获取数据存储实体?

python - Google App Engine、数据存储和任务队列、性能瓶颈?