GoogleAppEngine 新手,这个问题可能听起来很愚蠢...我只是按照教程创建了一个 Python 应用程序,它使用 GoogleAppEngineLauncher 在本地运行。有什么方法可以进入 Python shell 并使用正在运行的应用程序中的数据结构吗?谢谢!
最佳答案
对于本地运行的应用,您可以使用开发控制台中包含的交互式控制台。
The Interactive Console allows developers to enter arbitrary Python code into a web form and execute it inside their app's environment.
导航到开发控制台,单击左侧 Pane 中的交互式控制台链接。将显示带有单个文本区域的表单。在文本区域中输入您喜欢的任意 Python 代码,然后提交表单来执行它。
您可以在 App Engine Python 开发服务器 documentation 中找到更多详细信息.
关于python - 如何 shell 到本地运行的 Python 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26743861/