python 中如何将上下文环境保存下来
大家讲道理
大家讲道理 2017-04-17 14:17:16
0
1
333

我想做一个用 http 方式调用交互器,但是由于 http 是无状态的,我只好将 python 的 locals 存入到 session 里,然后下次请求再还原回来。

1。 不知道怎么能把 locals() 获取到的字典,写回到新的上下文空间。
2。 或者,整个思路都是错的?那http 方式的 python 交互器应该怎么做?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!