擅长:python、mysql、java
<p>动态范围界定似乎完全不同。来自<a href="https://en.wikipedia.org/wiki/Scope_(computer_science)#Dynamic_scoping" rel="nofollow">wikipedia</a>:</p>
<blockquote>
<p>With dynamic scope, a global identifier refers to the identifier associated with the most recent environment, and is uncommon in modern languages.[4] In technical terms, this means that each identifier has a global stack of bindings. Introducing a local variable with name x pushes a binding onto the global x stack (which may have been empty), which is popped off when the control flow leaves the scope. Evaluating x in any context always yields the top binding. Note that this cannot be done at compile-time because the binding stack only exists at run-time, which is why this type of scoping is called dynamic scoping.</p>
</blockquote>
<p>所以不,这和动态范围界定没有任何关系。在</p>