I'm going to repeat this a second time, because it's important. These local bindings do not affect any global bindings.
因为这非常重要,这些本地绑定,并不影响全局绑定。
All right. Now I want to say a couple of things about these local bindings.
好了,现在我想再说说本地绑定,我将会再次重复一遍。
When I'm talking to the interpreter, when I'm typing things in as I just did, to that Python environment, I'm getting what I'm going to call global bindings.
当我和解释器对话时,我会向我说的一样进行输入,输入到Python语言环境中,我会设置全局变量。
But that table does not affect any bindings for other instances of the variable like x for ANS.
这时这个局部表就消失了,这个局部表将不会影响其它赋值,比方说像ANS对应的x变量。
Inside of solve, solve creates an environment where inside of that, it has bindings for the parameters it's going to use. All right?
在solve内部,solve创建了一个环境,在这个环境中它给她要使用的形参赋了值,明白吗?就像很多--等等?
应用推荐