A scope is a textual region of a Python program where a namespace is directly accessible. “Directly accessible” here means that an unqualified reference to a name attempts to find the name in the namespace.
原文:https://www.cnblogs.com/allen2333/p/9072899.html