0
在Google应用引擎中使用全局变量是否正确?在Google应用引擎中使用全局变量python webapp
我在我的一个应用程序中使用了它们,事实证明,当应用程序未被使用时,它们往往会在很短的时间后被刷新。
如果我说得对,有没有其他的选择?
在Google应用引擎中使用全局变量是否正确?在Google应用引擎中使用全局变量python webapp
我在我的一个应用程序中使用了它们,事实证明,当应用程序未被使用时,它们往往会在很短的时间后被刷新。
如果我说得对,有没有其他的选择?
当您使用webapp2时,您可以使用注册表。 http://webapp-improved.appspot.com/guide/app.html#registry 并且有一个请求注册表:http://webapp-improved.appspot.com/guide/request.html#registry
@JoeBenet请你解释为什么添加了python标签。 – thecoshman 2013-03-06 10:45:17
@thecoshman我猜是因为它在标题中,所以它适用于Python :) – Lipis 2013-03-06 10:49:26
¬_¬我现在觉得这么愚蠢...... – thecoshman 2013-03-06 10:53:02