gpt4 book ai didi

python - 在 Python 中,如何测试我是否在 Google App Engine SDK 中?

转载 作者:IT老高 更新时间:2023-10-28 21:39:49 25 4
gpt4 key购买 nike

在开发过程中,我希望处理的一些事情与我最终上传到 Google 服务器时的处理方式略有不同。

我可以做一个快速测试来确定我是在 SDK 中还是在现场?

最佳答案

见:https://cloud.google.com/appengine/docs/python/how-requests-are-handled#Python_The_environment

The following environment variables are part of the CGI standard, with special behavior in App Engine: SERVER_SOFTWARE:

In the development web server, this value is "Development/X.Y" where "X.Y" is the version of the runtime.

When running on App Engine, this value is "Google App Engine/X.Y.Z".

关于python - 在 Python 中,如何测试我是否在 Google App Engine SDK 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1916579/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com