84669인 학습
152542인 학습
20005인 학습
5487인 학습
7821인 학습
359900인 학습
3350인 학습
180660인 학습
48569인 학습
18603인 학습
40936인 학습
1549인 학습
1183인 학습
32909인 학습
我想做一个用 http 方式调用交互器,但是由于 http 是无状态的,我只好将 python 的 locals 存入到 session 里,然后下次请求再还原回来。
1。 不知道怎么能把 locals() 获取到的字典,写回到新的上下文空间。 2。 或者,整个思路都是错的?那http 方式的 python 交互器应该怎么做?
光阴似箭催人老,日月如移越少年。
https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/debug/console.py#L175
https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/debug/console.py#L175