擅长:python、mysql、java
<p>根据<a href="https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces" rel="nofollow noreferrer">document</a></p>
<blockquote>
<p>A special quirk of Python is that – if no <code>global</code> statement is in effect – assignments to names always go into the innermost scope. Assignments do not copy data — they just bind names to objects.</p>
</blockquote>