问题 I was writing a small python script to understand a concept and got another confusion. Here's the code - x = 5 y = 3 class Exp(object): def __init__(self, x, y): self.x = x self.y = y print("In",x, y, self.x, self.y) print("Middle",x,y) print("Out",x,y) Exp(1,2) The output is - Middle 5 3 Out 5 3 In 1 2 1 2 Now, my concept was python interpreter starts reading and executing the code from the first line to last line. It executes the code inside a class only when it is "called", not when it is