fork download
  1. class F:
  2. a = 1
  3. b = 2
  4. def __init__(self):
  5. print(self.a)
  6. self.a += 1
  7. def wtf(self, z=a, x=b):
  8. print(z)
  9. print(x)
  10. def ch(self):
  11. self.b += 1
  12. def w2(self, z=b):
  13. print(z)
  14.  
  15. q = F()
  16. q.wtf()
  17.  
  18.  
Success #stdin #stdout 0.02s 9280KB
stdin
Standard input is empty
stdout
1
1
2