fork download
  1. class f1:
  2. def __init__(self, v):
  3. self.__v = v
  4. def upate(self):
  5. return self.__v
  6. t = f1(3)
  7. t.__v = 5
  8. print(t._f1__v)
  9. dir(f1)
Success #stdin #stdout 0.02s 8924KB
stdin
Standard input is empty
stdout
3