global frame vs. stack frame
问题 Everything below is from the main page of www.pythontutor.com (a fantastic tool and website by the way). Here's some code Here's what the author describes as the "global frame" and the "stack frames" at the current point of execution for the above code: My question: What's the difference between "global frame" and the "stack frame"? Is this terminology even correct (I googled around and got all kinds of different answers)? 回答1: frames are actual python objects that you can interact with: