The most important concept you want to know is environment evaluation model, which is simple but powerful.
Let me offer you a good material.
If you want to read Python document, you can read 4. Execution model — Python 3.7.4 documentation , it is very terse.
When a name is used in a code block, it is resolved using the nearest enclosing scope. The set of all such scopes visible to a code block is called the block’s environment.
The most important concept you want to know is environment evaluation model, which is simple but powerful.
Let me offer you a good material.
The most important concept you want to know is environment evaluation model, which is simple but powerful.
Let me offer you a good material.
If you want to read Python document, you can read 4. Execution model — Python 3.7.4 documentation , it is very terse.
When a name is used in a code block, it is resolved using the nearest enclosing scope. The set of all such scopes visible to a code block is called the block’s environment.